summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-11-04 16:22:27 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-08 11:31:02 +0100
commit019247bdc326a90bf20d3ce5d2413cc642e8bb08 (patch)
tree770e888a7e3c4571a499eda000b29750558b5268 /libavformat/mov.c
parentb7fea3daabc70095b6bd8d2ce24e4e0310276172 (diff)
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. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index eec8485b65..bcdda68bc8 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1779,7 +1779,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;
}