OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa78d89
)
make output buffer larger so drift compensation can work
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 6 Aug 2007 23:34:41 +0000
(23:34 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 6 Aug 2007 23:34:41 +0000
(23:34 +0000)
Originally committed as revision 9967 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/resample.c
patch
|
blob
|
history
diff --git
a/libavcodec/resample.c
b/libavcodec/resample.c
index
f4d6a0a
..
76521a7
100644
(file)
--- a/
libavcodec/resample.c
+++ b/
libavcodec/resample.c
@@
-191,7
+191,7
@@
int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl
}
/* make some zoom to avoid round pb */
- lenout= (int)(nb_samples * s->ratio) + 16;
+ lenout= (int)(
4*
nb_samples * s->ratio) + 16;
bufout[0]= (short*) av_malloc( lenout * sizeof(short) );
bufout[1]= (short*) av_malloc( lenout * sizeof(short) );