flvdec: Inject in stream extradata, into the stream.
The code before was unsafe, had a race condition and could crash. This Fixes Ticket499 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9b73fbcff6
commit
6d789f50d2
@ -505,7 +505,8 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if (flv->wrong_dts)
|
||||
dts = AV_NOPTS_VALUE;
|
||||
}
|
||||
if (type == 0) {
|
||||
|
||||
if (type == 0 && !st->codec->extradata) {
|
||||
if ((ret = flv_get_extradata(s, st, size)) < 0)
|
||||
return ret;
|
||||
if (st->codec->codec_id == CODEC_ID_AAC) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user