diff options
author | Alex Converse <aconverse@google.com> | 2011-02-27 16:29:21 -0800 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-12 13:05:30 +0200 |
commit | 7fe3207e250991d16381096327c74125bafe3b70 (patch) | |
tree | 6e9e4be3b01374c5efd3313aa58529e88cb7601a /libavformat/movenc.c | |
parent | 6ae38aa3ce197905fb52a631c7dd1b2a5e535b3e (diff) | |
download | ffmpeg-7fe3207e250991d16381096327c74125bafe3b70.tar.gz |
movenc: fix adpcm mono muxing.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 0327bdf797..1d3eb3fe5a 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 } |