diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-08-25 00:29:41 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-08-25 00:29:41 +0000 |
commit | 5b7c3c87072804f0c92461429c00d71c3d95cfa7 (patch) | |
tree | fd5110e345557aaef7d58fdcc6542b24971fba76 /src/inputPlugins/aac_plugin.c | |
parent | 64a4c635de97bf4b2c83e8a1b205b063501107f0 (diff) | |
download | mpd-5b7c3c87072804f0c92461429c00d71c3d95cfa7.tar.gz mpd-5b7c3c87072804f0c92461429c00d71c3d95cfa7.tar.xz mpd-5b7c3c87072804f0c92461429c00d71c3d95cfa7.zip |
Fix an esoteric gcc warning
git-svn-id: https://svn.musicpd.org/mpd/trunk@4684 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugins/aac_plugin.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inputPlugins/aac_plugin.c b/src/inputPlugins/aac_plugin.c index 8f7f83a9f..3213bb68f 100644 --- a/src/inputPlugins/aac_plugin.c +++ b/src/inputPlugins/aac_plugin.c @@ -223,9 +223,10 @@ static void initAacBuffer(InputStream * inStream, AacBuffer * b, float *length, skipSize] & 0xE0); - *length = fileread; - if (*length != 0 && bitRate != 0) - *length = *length * 8.0 / bitRate; + if (fileread != 0 && bitRate != 0) + *length = fileread * 8.0 / bitRate; + else + *length = fileread; } } |