[FFmpeg-cvslog] r9967 - trunk/libavcodec/resample.c
michael
subversion
Tue Aug 7 01:34:42 CEST 2007
Author: michael
Date: Tue Aug 7 01:34:41 2007
New Revision: 9967
Log:
make output buffer larger so drift compensation can work
Modified:
trunk/libavcodec/resample.c
Modified: trunk/libavcodec/resample.c
==============================================================================
--- trunk/libavcodec/resample.c (original)
+++ trunk/libavcodec/resample.c Tue Aug 7 01:34:41 2007
@@ -191,7 +191,7 @@ int audio_resample(ReSampleContext *s, s
}
/* 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) );
More information about the ffmpeg-cvslog
mailing list