From 4d686674b26596ccf951528a85526977016db8dd Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Sun, 11 May 2014 05:15:49 +0200 Subject: [PATCH] ffmpeg: use av_fifo_alloc_array Signed-off-by: Lukasz Marek --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index 9df3b829d2..7ec5889fae 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 :