aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:10 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:10 +0200
commit1d18f0089ab021e79cda0ad5a39de770ac589a51 (patch)
treeea0ea24e610cc8704c465bb43ba30196faaa3d4a /src
parent0ca8f9ac4966c230a5cb2f1cd01a6c7c8779fcb9 (diff)
downloadmpd-1d18f0089ab021e79cda0ad5a39de770ac589a51.tar.gz
mpd-1d18f0089ab021e79cda0ad5a39de770ac589a51.tar.xz
mpd-1d18f0089ab021e79cda0ad5a39de770ac589a51.zip
aac: make adtsParse() void
adtsParse() always returns 1, and its caller does not use the return value.
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/aac_plugin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/inputPlugins/aac_plugin.c b/src/inputPlugins/aac_plugin.c
index cc66a231e..c337cc3b8 100644
--- a/src/inputPlugins/aac_plugin.c
+++ b/src/inputPlugins/aac_plugin.c
@@ -90,7 +90,7 @@ static int adtsSampleRates[] =
16000, 12000, 11025, 8000, 7350, 0, 0, 0
};
-static int adtsParse(AacBuffer * b, float *length)
+static void adtsParse(AacBuffer * b, float *length)
{
unsigned int frames, frameLength;
int sampleRate = 0;
@@ -128,8 +128,6 @@ static int adtsParse(AacBuffer * b, float *length)
framesPerSec = (float)sampleRate / 1024.0;
if (framesPerSec != 0)
*length = (float)frames / framesPerSec;
-
- return 1;
}
static void initAacBuffer(InputStream * inStream, AacBuffer * b, float *length)