Commit 51f5bf93 authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

use unsigned integers in the flac plugin

The counter variables c_samp and c_chan begin at zero and can never be negative. git-svn-id: https://svn.musicpd.org/mpd/trunk@7228 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 4dc709d0
......@@ -215,7 +215,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
FLAC__uint32 samples = frame->header.blocksize;
FLAC__uint16 u16;
unsigned char *uc;
int c_samp, c_chan;
unsigned int c_samp, c_chan;
int i;
float timeChange;
FLAC__uint64 newPosition = 0;
......
......@@ -169,7 +169,7 @@ static FLAC__StreamDecoderWriteStatus oggflacWrite(const
FLAC__uint32 samples = frame->header.blocksize;
FLAC__uint16 u16;
unsigned char *uc;
int c_samp, c_chan;
unsigned int c_samp, c_chan;
int i;
float timeChange;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment