[FFmpeg-cvslog] movenc: fix adpcm mono muxing.
Alex Converse
git at videolan.org
Fri May 13 04:45:59 CEST 2011
ffmpeg | branch: master | Alex Converse <aconverse at google.com> | Sun Feb 27 16:29:21 2011 -0800| [7fe3207e250991d16381096327c74125bafe3b70] | committer: Anton Khirnov
movenc: fix adpcm mono muxing.
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7fe3207e250991d16381096327c74125bafe3b70
---
libavformat/movenc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 0327bdf..1d3eb3f 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