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:41:01 +0200
commit43af9624fe11b89c02fa67e6993ba7b5f68d35c1 (patch)
tree9c0dd33bad3529adc90e04271a00c4bd45414591
parent87f719a03f23dd16c55bf7c60d3ef848936885c0 (diff)
downloadffmpeg-43af9624fe11b89c02fa67e6993ba7b5f68d35c1.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 5a93b12650..e45c73628e 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))