# HG changeset patch # User michael # Date 1186443281 0 # Node ID f64d8abf92e0f92ff30a307700bbf7e9f24aaa24 # Parent a0dcb5a514097b44c15447eaf55af386532ed774 make output buffer larger so drift compensation can work diff -r a0dcb5a51409 -r f64d8abf92e0 resample.c --- 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) );