[FFmpeg-cvslog] avformat/flvdec: Set need_context_update when setting the initial extradata

Alex Converse git at videolan.org
Mon Sep 4 06:02:22 EEST 2017


ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Tue Aug 29 10:47:26 2017 -0700| [4d2b9ece45e576474a2f03eb47f5cc088eec3f0c] | committer: Alex Converse

avformat/flvdec: Set need_context_update when setting the initial extradata

Fixes ticket 6398.

Debugged with the help of James Almer and Hendrik Leppkes.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d2b9ece45e576474a2f03eb47f5cc088eec3f0c
---

 libavformat/flvdec.c | 1 +
 1 file changed, 1 insertion(+)

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;
 }
 



More information about the ffmpeg-cvslog mailing list