avformat/flvdec: use AV_PKT_DATA_NEW_EXTRADATA for h264 too
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Jul 2014 15:08:56 +0000 (17:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Jul 2014 15:41:12 +0000 (17:41 +0200)
Fixes Ticket 3787

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/flvdec.c

index 899a036..a97fc32 100644 (file)
@@ -951,7 +951,8 @@ retry_duration:
                 dts = pts = AV_NOPTS_VALUE;
             }
         }
-        if (type == 0 && (!st->codec->extradata || st->codec->codec_id == AV_CODEC_ID_AAC)) {
+        if (type == 0 && (!st->codec->extradata || st->codec->codec_id == AV_CODEC_ID_AAC ||
+            st->codec->codec_id == AV_CODEC_ID_H264)) {
             AVDictionaryEntry *t;
 
             if (st->codec->extradata) {