1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

movenc: fix adpcm mono muxing.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Alex Converse 2011-02-27 16:29:21 -08:00 committed by Anton Khirnov
parent 6ae38aa3ce
commit 7fe3207e25

View File

@ -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
}