You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffmpeg: use av_fifo_alloc_array
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
2
ffmpeg.c
2
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 :
|
||||
|
Reference in New Issue
Block a user