changeset 5502:f64d8abf92e0 libavcodec

make output buffer larger so drift compensation can work
author michael
date Mon, 06 Aug 2007 23:34:41 +0000
parents a0dcb5a51409
children f5c43e693810
files resample.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/resample.c	Mon Aug 06 19:49:18 2007 +0000
+++ b/resample.c	Mon Aug 06 23:34:41 2007 +0000
@@ -191,7 +191,7 @@
     }
 
     /* 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) );