aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-06 23:34:41 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-06 23:34:41 +0000
commit5eac5f29e3677e9ba260c3acf8197cab540bbcde (patch)
tree0007ab9ec867f05cfb770248d8dc0ca5bc25a4a5
parentfa78d895cb4191f29cb0333d517c0ad21fff6573 (diff)
downloadffmpeg-5eac5f29e3677e9ba260c3acf8197cab540bbcde.tar.gz
make output buffer larger so drift compensation can work
Originally committed as revision 9967 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/resample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/resample.c b/libavcodec/resample.c
index f4d6a0aae7..76521a75e0 100644
--- 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) );