diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-08-19 18:49:57 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-08-19 18:49:57 +0000 |
commit | 745b39d5f92437629513f2b8fc3287fb2e66d3ff (patch) | |
tree | f5f4fa15c38fe7044996e1fcf066970ed2cedcf9 /ffmpeg.c | |
parent | a1ab56c5a833370d18cdad0ae7874dee06ad44ce (diff) | |
download | ffmpeg-745b39d5f92437629513f2b8fc3287fb2e66d3ff.tar.gz |
Replace invocations of av_fifo_realloc(), which is going to be
deprecated, with corresponding invocations of av_fifo_realloc2().
Originally committed as revision 14848 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -644,7 +644,10 @@ 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); + if (av_fifo_realloc2(&ost->fifo, av_fifo_size(&ost->fifo) + size_out) < 0) { + fprintf(stderr, "av_fifo_realloc2() failed\n"); + av_exit(1); + } av_fifo_generic_write(&ost->fifo, buftmp, size_out, NULL); frame_bytes = enc->frame_size * 2 * enc->channels; |