OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae38aa
)
movenc: fix adpcm mono muxing.
author
Alex Converse
<aconverse@google.com>
Mon, 28 Feb 2011 00:29:21 +0000
(16:29 -0800)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 12 May 2011 11:05:30 +0000
(13:05 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/movenc.c
patch
|
blob
|
history
diff --git
a/libavformat/movenc.c
b/libavformat/movenc.c
index
0327bdf
..
1d3eb3f
100644
(file)
--- 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
}