summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-08-25 00:29:41 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-08-25 00:29:41 +0000
commit5b7c3c87072804f0c92461429c00d71c3d95cfa7 (patch)
treefd5110e345557aaef7d58fdcc6542b24971fba76
parent64a4c635de97bf4b2c83e8a1b205b063501107f0 (diff)
Fix an esoteric gcc warning
git-svn-id: https://svn.musicpd.org/mpd/trunk@4684 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--src/inputPlugins/aac_plugin.c7
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;
}
}