diff resample.c @ 5502:f64d8abf92e0 libavcodec

make output buffer larger so drift compensation can work
author michael
date Mon, 06 Aug 2007 23:34:41 +0000
parents 45d083bbbbe7
children ed05a3d964fa
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) );