aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-04 17:39:19 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-10-24 11:23:59 +0200
commit802c4f5231865a56dfa2723db434fa199d1a1039 (patch)
tree76febc986422d8b9aa02f2f0db79a26fd88d8182
parent6636dd551fda4fac77f2caa25d24d81abcadcd71 (diff)
downloadffmpeg-802c4f5231865a56dfa2723db434fa199d1a1039.tar.gz
avformat/mov: force parsing of headers if stts is absent
Fixes Ticket2991 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e41ea866fc26f38d770bbc1ad67703e7f4400ae1)
-rw-r--r--libavformat/mov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index db4ff274ce..905647edcc 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1684,6 +1684,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))