]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/flvdec.c
Ignore xing number of frames if the file is larger than indicated.
[ffmpeg] / libavformat / flvdec.c
index 899a0368f4f194b88904e39a27c16d24f0a0cffc..a97fc32a206643a75bef70c81ab8e44844ed2e1a 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) {