[FFmpeg-cvslog] avformat/mov: only force parsing for video tracks if stss is empty

Hendrik Leppkes git at videolan.org
Mon Mar 24 23:47:40 CET 2014


ffmpeg | branch: release/1.0 | Hendrik Leppkes <h.leppkes at gmail.com> | Mon Nov  4 16:22:27 2013 +0100| [519675c49c28eafa592274abea7170c16e8c45fc] | committer: Carl Eugen Hoyos

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 at gmx.at>
(cherry picked from commit 019247bdc326a90bf20d3ce5d2413cc642e8bb08)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=519675c49c28eafa592274abea7170c16e8c45fc
---

 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index bd408af..0959b22 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1669,7 +1669,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;
     }



More information about the ffmpeg-cvslog mailing list