aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-24 01:55:34 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-24 01:55:34 +0000
commita6ebca9e09d21f0b13b2b2b027c30a52f0827363 (patch)
tree1606899912fa386cb3bf955d0159babd6b139e84
parent58293e57e158cd18a522df42ebc56611f94cae5e (diff)
downloadffmpeg-a6ebca9e09d21f0b13b2b2b027c30a52f0827363.tar.gz
realloc fifo
Originally committed as revision 12185 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e4b3dcfd59..baa10df2ba 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;