Commit 6d789f50 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9b73fbcf
......@@ -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) {
......
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