[FFmpeg-cvslog] ffmpeg: use av_fifo_alloc_array

Lukasz Marek git at videolan.org
Tue May 20 00:35:46 CEST 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sun May 11 05:15:49 2014 +0200| [4d686674b26596ccf951528a85526977016db8dd] | committer: Lukasz Marek

ffmpeg: use av_fifo_alloc_array

Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d686674b26596ccf951528a85526977016db8dd
---

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 9df3b82..7ec5889 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3180,7 +3180,7 @@ static int init_input_threads(void)
     for (i = 0; i < nb_input_files; i++) {
         InputFile *f = input_files[i];
 
-        if (!(f->fifo = av_fifo_alloc(8*sizeof(AVPacket))))
+        if (!(f->fifo = av_fifo_alloc_array(8, sizeof(AVPacket))))
             return AVERROR(ENOMEM);
 
         if (f->ctx->pb ? !f->ctx->pb->seekable :



More information about the ffmpeg-cvslog mailing list