lower frame size to split amr/qcelp/gsm frames

Originally committed as revision 12954 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-04-25 13:24:25 +00:00
parent 96ddaff5ec
commit 3b8c000d1e

View File

@ -1186,7 +1186,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
/* get chunk size, beware of alaw/ulaw/mace */ /* get chunk size, beware of alaw/ulaw/mace */
if (sc->samples_per_frame > 0 && if (sc->samples_per_frame > 0 &&
(chunk_samples * sc->bytes_per_frame % 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; chunk_size = chunk_samples * sc->bytes_per_frame / sc->samples_per_frame;
else { else {
chunk_size = sc->bytes_per_frame; chunk_size = sc->bytes_per_frame;