[FFmpeg-cvslog] r22521 - trunk/libavformat/avidec.c
reimar
subversion
Sun Mar 14 14:38:01 CET 2010
Author: reimar
Date: Sun Mar 14 14:38:00 2010
New Revision: 22521
Log:
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.
Modified:
trunk/libavformat/avidec.c
Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c Sun Mar 14 02:52:31 2010 (r22520)
+++ trunk/libavformat/avidec.c Sun Mar 14 14:38:00 2010 (r22521)
@@ -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;
More information about the ffmpeg-cvslog
mailing list