From a6ebca9e09d21f0b13b2b2b027c30a52f0827363 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 24 Feb 2008 01:55:34 +0000 Subject: [PATCH] realloc fifo Originally committed as revision 12185 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index e4b3dcf..baa10df 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -536,6 +536,7 @@ static void do_audio_out(AVFormatContext *s, /* now encode as many frames as possible */ if (enc->frame_size > 1) { /* output resampled raw samples */ + av_fifo_realloc(&ost->fifo, av_fifo_size(&ost->fifo) + size_out + 1); av_fifo_write(&ost->fifo, buftmp, size_out); frame_bytes = enc->frame_size * 2 * enc->channels; -- 2.7.4