aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-11-04 16:22:27 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-03-24 23:39:35 +0100
commit519675c49c28eafa592274abea7170c16e8c45fc (patch)
treeea64b3bfb8d4a4a4a039a674a30b8bd2373bda5e
parent08f53e1b14ff0e6f1d935c5c2d2f2eefbdf73c25 (diff)
downloadffmpeg-519675c49c28eafa592274abea7170c16e8c45fc.tar.gz
avformat/mov: only force parsing for video tracks if stss is empty
Fixes playback of some AAC streams, which are otherwise mangled by the parser, and stss is typically only valid for video anyway. Fixes a regression since e41ea866. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 019247bdc326a90bf20d3ce5d2413cc642e8bb08)
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index bd408afbb6..0959b22a89 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1669,7 +1669,7 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (!entries)
{
sc->keyframe_absent = 1;
- if (!st->need_parsing)
+ if (!st->need_parsing && st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
st->need_parsing = AVSTREAM_PARSE_HEADERS;
return 0;
}