mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
avformat/flvdec: Set need_context_update when setting the initial extradata
Fixes ticket 6398. Debugged with the help of James Almer and Hendrik Leppkes.
This commit is contained in:
parent
f3c0f34f53
commit
4d2b9ece45
@ -754,6 +754,7 @@ static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size)
|
|||||||
av_freep(&st->codecpar->extradata);
|
av_freep(&st->codecpar->extradata);
|
||||||
if (ff_get_extradata(s, st->codecpar, s->pb, size) < 0)
|
if (ff_get_extradata(s, st->codecpar, s->pb, size) < 0)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
st->internal->need_context_update = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user