[FFmpeg-cvslog] In mov muxer, fix adpcm mono muxing, patch by Alex Converse

Baptiste Coudurier git
Mon Feb 28 01:27:38 CET 2011


ffmpeg | branch: master | Baptiste Coudurier <baptiste.coudurier at gmail.com> | Sun Feb 27 16:29:21 2011 -0800| [65ad2c618ffa83dd589f7d02d2ea9853aa477849] | committer: Baptiste Coudurier

In mov muxer, fix adpcm mono muxing, patch by Alex Converse

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

 libavformat/movenc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index de16b5b..7179e7a 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -91,6 +91,7 @@ static int mov_write_stsz_tag(AVIOContext *pb, MOVTrack *track)
     }
     if (equalChunks) {
         int sSize = track->cluster[0].size/track->cluster[0].entries;
+        sSize = FFMAX(1, sSize); // adpcm mono case could make sSize == 0
         avio_wb32(pb, sSize); // sample size
         avio_wb32(pb, entries); // sample count
     }




More information about the ffmpeg-cvslog mailing list