diff options
author | Alex Converse <aconverse@google.com> | 2011-02-28 03:29:21 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-12 15:05:30 +0400 |
commit | 7fe3207e250991d16381096327c74125bafe3b70 (patch) | |
tree | 6e9e4be3b01374c5efd3313aa58529e88cb7601a /libavformat | |
parent | 6ae38aa3ce197905fb52a631c7dd1b2a5e535b3e (diff) |
movenc: fix adpcm mono muxing.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat')
-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 } |