Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2017-08-29 20:47:26 +0300
committerAlex Converse <alex.converse@gmail.com>2017-09-04 06:01:39 +0300
commit4d2b9ece45e576474a2f03eb47f5cc088eec3f0c (patch)
tree2f2ac3feb25b5e1638ff2542d5f840d62061f543 /libavformat
parentf3c0f34f53c26b800aae0d4e63608b065d73f4ec (diff)
avformat/flvdec: Set need_context_update when setting the initial extradata
Fixes ticket 6398. Debugged with the help of James Almer and Hendrik Leppkes.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flvdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 94c9e28334..2e70352c53 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -754,6 +754,7 @@ static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size)
av_freep(&st->codecpar->extradata);
if (ff_get_extradata(s, st->codecpar, s->pb, size) < 0)
return AVERROR(ENOMEM);
+ st->internal->need_context_update = 1;
return 0;
}