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
This commit is contained in:
Max Kellermann 2008-04-12 04:06:39 +00:00 committed by Eric Wong
parent 4dc709d04e
commit 51f5bf932c
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;