diff mbox

[FFmpeg-devel,1/2] avformat/flvdec: Set need_context_update when setting the initial extradata

Message ID 20170829184007.9624-1-alex.converse@gmail.com
State Accepted
Commit 4d2b9ece45e576474a2f03eb47f5cc088eec3f0c
Headers show

Commit Message

Alex Converse Aug. 29, 2017, 6:40 p.m. UTC
Fixes ticket 6398.

Debugged with the help of James Almer and Hendrik Leppkes.
---
 libavformat/flvdec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Aug. 31, 2017, 12:09 a.m. UTC | #1
On Tue, Aug 29, 2017 at 11:40:06AM -0700, Alex Converse wrote:
> Fixes ticket 6398.
> 
> Debugged with the help of James Almer and Hendrik Leppkes.
> ---
>  libavformat/flvdec.c | 1 +
>  1 file changed, 1 insertion(+)

should be ok

thx

[...]
Alex Converse Sept. 4, 2017, 3:06 a.m. UTC | #2
On Wed, Aug 30, 2017 at 5:09 PM, Michael Niedermayer
<michael@niedermayer.cc> wrote:
> On Tue, Aug 29, 2017 at 11:40:06AM -0700, Alex Converse wrote:
>> Fixes ticket 6398.
>>
>> Debugged with the help of James Almer and Hendrik Leppkes.
>> ---
>>  libavformat/flvdec.c | 1 +
>>  1 file changed, 1 insertion(+)
>
> should be ok
>
> thx
>

Pushed.

Any thoughts on patch 2/2?
diff mbox

Patch

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