ffmpeg: use av_fifo_alloc_array
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sun, 11 May 2014 03:15:49 +0000 (05:15 +0200)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Mon, 19 May 2014 22:00:44 +0000 (00:00 +0200)
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
ffmpeg.c

index 9df3b82..7ec5889 100644 (file)
--- 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 :