diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-11-04 19:22:27 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-08 14:31:02 +0400 |
commit | 019247bdc326a90bf20d3ce5d2413cc642e8bb08 (patch) | |
tree | 770e888a7e3c4571a499eda000b29750558b5268 | |
parent | b7fea3daabc70095b6bd8d2ce24e4e0310276172 (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>
-rw-r--r-- | libavformat/mov.c | 2 |
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; } |