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 019247bdc3)
This commit is contained in:
Hendrik Leppkes
2013-11-04 16:22:27 +01:00
committed by Carl Eugen Hoyos
parent 26e1bccec6
commit cf4099161a

View File

@@ -1684,7 +1684,7 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (!entries) if (!entries)
{ {
sc->keyframe_absent = 1; 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; st->need_parsing = AVSTREAM_PARSE_HEADERS;
return 0; return 0;
} }