Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-11-04 19:20:27 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-11-04 19:20:27 +0400
commitf2ba39b04816a1a51a38a89954918a370c9f9ab8 (patch)
tree49d97b46f5ec08f2d4a54880b3fb4ab8b4aee388
parent77ad8799be6e5ffafa1a0907f74726501ee1b7ac (diff)
avformat/mov: only force parsing for video tracks if stss is emptympc-hc-1.7.1-6lav0.59.1
Fixes playback of some AAC streams, which are otherwise mangled by the parser, and stss is typically only valid for video anyway.
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3d20d33de4..ad8a66864c 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;
}