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:
parent
4dc709d04e
commit
51f5bf932c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue