diff options
author | Laszlo Ashin <kodest@gmail.com> | 2008-11-15 11:50:25 +0100 |
---|---|---|
committer | Laszlo Ashin <kodest@gmail.com> | 2008-11-15 11:50:25 +0100 |
commit | 00da7db1e31f296596b64cbbdfacb32182653100 (patch) | |
tree | 7ddd302eacf1b4e11670845e72463a3edc1ff225 /src/decoder | |
parent | 0efd80d2e541d1e2d6adcceeb24d399e006380ec (diff) | |
download | mpd-00da7db1e31f296596b64cbbdfacb32182653100.tar.gz mpd-00da7db1e31f296596b64cbbdfacb32182653100.tar.xz mpd-00da7db1e31f296596b64cbbdfacb32182653100.zip |
aac: don't try to free static buffer
In 432da18e a dynamic buffer was replaced by a static one but some
frees were accidently left there which caused some segfaults.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/aac_plugin.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index 1817f9cf4..de044ae12 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -282,8 +282,6 @@ static float getAacFloatTotalTime(const char *file) faacDecClose(decoder); } - if (b.buffer) - free(b.buffer); input_stream_close(&inStream); return length; @@ -352,8 +350,6 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) if (bread < 0) { ERROR("Error not a AAC stream.\n"); faacDecClose(decoder); - if (b.buffer) - free(b.buffer); return; } |