diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:06:39 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:06:39 +0000 |
commit | 51f5bf932c2cf4d6aafb62fa2859881efd6a86fc (patch) | |
tree | 8ac9a7ad10aec783cff009eee5f627d598237a6f /src/inputPlugins | |
parent | 4dc709d04e543b4841498ea0dd3763ef065ed37a (diff) | |
download | mpd-51f5bf932c2cf4d6aafb62fa2859881efd6a86fc.tar.gz mpd-51f5bf932c2cf4d6aafb62fa2859881efd6a86fc.tar.xz mpd-51f5bf932c2cf4d6aafb62fa2859881efd6a86fc.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugins/flac_plugin.c | 2 | ||||
-rw-r--r-- | src/inputPlugins/oggflac_plugin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c index a285efcf0..7dab78922 100644 --- a/src/inputPlugins/flac_plugin.c +++ b/src/inputPlugins/flac_plugin.c @@ -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; diff --git a/src/inputPlugins/oggflac_plugin.c b/src/inputPlugins/oggflac_plugin.c index 1bbb10e9a..4e56a554a 100644 --- a/src/inputPlugins/oggflac_plugin.c +++ b/src/inputPlugins/oggflac_plugin.c @@ -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; |