mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 11:39:47 +00:00
make output buffer larger so drift compensation can work
Originally committed as revision 9967 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fa78d895cb
commit
5eac5f29e3
@ -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) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user