[FFmpeg-cvslog] mov: move stsd finalization to an appropriate place

Hendrik Leppkes git at videolan.org
Mon Oct 17 13:50:34 EEST 2016


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Oct 14 13:48:22 2016 +0200| [656feb641de3cd5b9cb4e33ffd3f0ad4664c36d2] | committer: Hendrik Leppkes

mov: move stsd finalization to an appropriate place

mov_finalize_stsd_codec parses stream information from the ALAC extradata,
so run it after the extradata processing is completed in mov_read_stsd.

Fixes playback of 96kHz ALAC streams muxed by qaac or the reference alac encoder.
Fixes trac ticket #5826

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

 libavformat/mov.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index add1812..cd3e46a 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2289,7 +2289,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
     if (pb->eof_reached)
         return AVERROR_EOF;
 
-    return mov_finalize_stsd_codec(c, pb, st, sc);
+    return 0;
 }
 
 static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
@@ -2341,7 +2341,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         memcpy(st->codecpar->extradata, sc->extradata[0], sc->extradata_size[0]);
     }
 
-    return 0;
+    return mov_finalize_stsd_codec(c, pb, st, sc);
 fail:
     av_freep(&sc->extradata);
     av_freep(&sc->extradata_size);



More information about the ffmpeg-cvslog mailing list