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:
parent
0efd80d2e5
commit
00da7db1e3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user