Commit b765eb33 authored by bcoudurier's avatar bcoudurier

lower frame size to split amr/qcelp/gsm frames

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12954 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1a1df515
...@@ -1186,7 +1186,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) ...@@ -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;
......
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