Commit 4fb08aba authored by michael's avatar michael

realloc fifo


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12185 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7629f7c7
...@@ -536,6 +536,7 @@ static void do_audio_out(AVFormatContext *s, ...@@ -536,6 +536,7 @@ static void do_audio_out(AVFormatContext *s,
/* now encode as many frames as possible */ /* now encode as many frames as possible */
if (enc->frame_size > 1) { if (enc->frame_size > 1) {
/* output resampled raw samples */ /* 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); av_fifo_write(&ost->fifo, buftmp, size_out);
frame_bytes = enc->frame_size * 2 * enc->channels; frame_bytes = enc->frame_size * 2 * enc->channels;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment