OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686c781
)
Avoid creating tiny (possibly only 64 bytes large) audio packets resulting in
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 14 Mar 2010 13:38:00 +0000
(13:38 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 14 Mar 2010 13:38:00 +0000
(13:38 +0000)
huge processing and memory usage overhead for avi files with raw PCM audio.
Originally committed as revision 22521 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avidec.c
patch
|
blob
|
history
diff --git
a/libavformat/avidec.c
b/libavformat/avidec.c
index
d56dcd2
..
cba34f8
100644
(file)
--- a/
libavformat/avidec.c
+++ b/
libavformat/avidec.c
@@
-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;