# HG changeset patch # User reimar # Date 1268573880 0 # Node ID a92c2f3c87e8a5f44a866fcb1f4ada72f77c340e # Parent 134741dc8327a58fb41e67c1a2e165b91cf7635b 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. diff -r 134741dc8327 -r a92c2f3c87e8 avidec.c --- a/avidec.c Sat Mar 13 19:19:44 2010 +0000 +++ b/avidec.c Sun Mar 14 13:38:00 2010 +0000 @@ -749,7 +749,8 @@ 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;