diff options
author | Hendrik Leppkes <[email protected]> | 2013-11-04 16:22:27 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <[email protected]> | 2014-03-24 23:38:10 +0100 |
commit | cf4099161a33643ca620796a4dc4d183c5b48b3a (patch) | |
tree | f98921c421397be1d1be9acd33303d83cd765501 | |
parent | 26e1bccec65d73ee37b5a76791e52cdd6c21658e (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.
Fixes a regression since e41ea866.
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 019247bdc326a90bf20d3ce5d2413cc642e8bb08)
-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 0f0c411373..4f12f0f8f8 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1684,7 +1684,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; } |