avformat/mov: force parsing of headers if stts is absent
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Oct 2013 15:39:19 +0000 (17:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Oct 2013 15:47:26 +0000 (17:47 +0200)
Fixes Ticket2991

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

index b06dcdb..37dd90b 100644 (file)
@@ -1790,6 +1790,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))