[FFmpeg-devel] [PATCH 02/10] ffmpeg: use av_fifo_alloc_array

Lukasz Marek lukasz.m.luki2 at gmail.com
Sun May 11 05:41:58 CEST 2014


Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
---
 ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 9792281..de54140 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3130,7 +3130,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 :
-- 
1.9.1



More information about the ffmpeg-devel mailing list