Commit c3288b15 authored by reimar's avatar reimar

Avoid creating tiny (possibly only 64 bytes large) audio packets resulting in

huge processing and memory usage overhead for avi files with raw PCM audio.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22521 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f276d870
......@@ -749,7 +749,8 @@ resync:
if(ast->sample_size <= 1) // minorityreport.AVI block_align=1024 sample_size=1 IMA-ADPCM
size= INT_MAX;
else if(ast->sample_size < 32)
size= 64*ast->sample_size;
// arbitrary multiplier to avoid tiny packets for raw PCM data
size= 1024*ast->sample_size;
else
size= ast->sample_size;
......
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