diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-02-27 16:29:21 -0800 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2011-02-27 16:29:21 -0800 |
commit | 65ad2c618ffa83dd589f7d02d2ea9853aa477849 (patch) | |
tree | 2e522629b9f1cc74272b313d293042be883b3024 /libavformat/movenc.c | |
parent | 4ea02a9a71865d0e8b31b22e9bb68654c4800951 (diff) | |
download | ffmpeg-65ad2c618ffa83dd589f7d02d2ea9853aa477849.tar.gz |
In mov muxer, fix adpcm mono muxing, patch by Alex Converse
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 de16b5b190..7179e7a828 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 } |