aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/aac_plugin.c
diff options
context:
space:
mode:
authorAvuton Olrich <avuton@gmail.com>2006-08-20 03:11:12 +0000
committerAvuton Olrich <avuton@gmail.com>2006-08-20 03:11:12 +0000
commitaa487e6c75a6a9bd70189707f977fd66ba9c12a7 (patch)
tree6d0e9c2adaefdebe19619863442b6452e3422223 /src/inputPlugins/aac_plugin.c
parent54a1a9f2b638eeb916e32aa656be5c0c9366ddee (diff)
downloadmpd-aa487e6c75a6a9bd70189707f977fd66ba9c12a7.tar.gz
mpd-aa487e6c75a6a9bd70189707f977fd66ba9c12a7.tar.xz
mpd-aa487e6c75a6a9bd70189707f977fd66ba9c12a7.zip
This fixes 5 potential bugs where the conditional would always be true.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4659 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/aac_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/aac_plugin.c b/src/inputPlugins/aac_plugin.c
index c24254b54..8f7f83a9f 100644
--- a/src/inputPlugins/aac_plugin.c
+++ b/src/inputPlugins/aac_plugin.c
@@ -239,7 +239,7 @@ static float getAacFloatTotalTime(char *file)
unsigned int sampleRate;
unsigned char channels;
InputStream inStream;
- size_t bread;
+ long bread;
if (openInputStream(&inStream, file) < 0)
return -1;
@@ -291,7 +291,7 @@ static int aac_decode(OutputBuffer * cb, DecoderControl * dc, char *path)
faacDecHandle decoder;
faacDecFrameInfo frameInfo;
faacDecConfigurationPtr config;
- size_t bread;
+ long bread;
unsigned int sampleRate;
unsigned char channels;
int eof = 0;