Commit 3b8c000d authored by Baptiste Coudurier's avatar Baptiste Coudurier

lower frame size to split amr/qcelp/gsm frames

Originally committed as revision 12954 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 96ddaff5
......@@ -1186,7 +1186,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
/* get chunk size, beware of alaw/ulaw/mace */
if (sc->samples_per_frame > 0 &&
(chunk_samples * sc->bytes_per_frame % sc->samples_per_frame == 0)) {
if (sc->samples_per_frame < 1024)
if (sc->samples_per_frame < 160)
chunk_size = chunk_samples * sc->bytes_per_frame / sc->samples_per_frame;
else {
chunk_size = sc->bytes_per_frame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment