Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 1ea7ea7717..d1904dd70b 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -211,7 +211,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
}
/* create a sink for each output and connect them to the graph */
- lavfi->sinks = av_malloc(sizeof(AVFilterContext *) * avctx->nb_streams);
+ lavfi->sinks = av_malloc_array(avctx->nb_streams, sizeof(AVFilterContext *));
if (!lavfi->sinks)
FAIL(AVERROR(ENOMEM));