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);
|
faacDecClose(decoder);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (b.buffer)
|
|
||||||
free(b.buffer);
|
|
||||||
input_stream_close(&inStream);
|
input_stream_close(&inStream);
|
||||||
|
|
||||||
return length;
|
return length;
|
||||||
|
@ -352,8 +350,6 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
|
||||||
if (bread < 0) {
|
if (bread < 0) {
|
||||||
ERROR("Error not a AAC stream.\n");
|
ERROR("Error not a AAC stream.\n");
|
||||||
faacDecClose(decoder);
|
faacDecClose(decoder);
|
||||||
if (b.buffer)
|
|
||||||
free(b.buffer);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue