Commit 00da7db1 authored by Laszlo Ashin's avatar Laszlo Ashin

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.
parent 0efd80d2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment