mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 13:04:50 +00:00
realloc fifo
Originally committed as revision 12185 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
58293e57e1
commit
a6ebca9e09
1
ffmpeg.c
1
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;
|
||||
|
Loading…
Reference in New Issue
Block a user