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.
This commit is contained in:
Laszlo Ashin 2008-11-15 11:50:25 +01:00
parent 0efd80d2e5
commit 00da7db1e3
1 changed files with 0 additions and 4 deletions

View File

@ -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;
}