[FFmpeg-cvslog] avformat/mov: force parsing of headers if stts is absent

Michael Niedermayer git at videolan.org
Thu Oct 24 11:58:57 CEST 2013


ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Fri Oct  4 17:39:19 2013 +0200| [43af9624fe11b89c02fa67e6993ba7b5f68d35c1] | committer: Carl Eugen Hoyos

avformat/mov: force parsing of headers if stts is absent

Fixes Ticket2991

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit e41ea866fc26f38d770bbc1ad67703e7f4400ae1)

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

 libavformat/mov.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 5a93b12..e45c736 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1660,6 +1660,8 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     if (!entries)
     {
         sc->keyframe_absent = 1;
+        if (!st->need_parsing)
+            st->need_parsing = AVSTREAM_PARSE_HEADERS;
         return 0;
     }
     if (entries >= UINT_MAX / sizeof(int))



More information about the ffmpeg-cvslog mailing list