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:32:05 +0100
commit63dcf7c77c4aa5656c09c46cc1ed229decb672d3 (patch)
tree2de89ffeb779018b40d704f96e84d03c09f11db1
parent610a0646076310f090408c333a925fc82e1db8e7 (diff)
downloadffmpeg-63dcf7c77c4aa5656c09c46cc1ed229decb672d3.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 c5d4dcbed6..8b4f70b9cb 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1781,7 +1781,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;
}