diff options
Diffstat (limited to 'libavfilter/vf_overlay_qsv.c')
-rw-r--r-- | libavfilter/vf_overlay_qsv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c index 578ef47e88..76bad4a984 100644 --- a/libavfilter/vf_overlay_qsv.c +++ b/libavfilter/vf_overlay_qsv.c @@ -325,8 +325,8 @@ static int overlay_qsv_init(AVFilterContext *ctx) vpp->comp_conf.Header.BufferId = MFX_EXTBUFF_VPP_COMPOSITE; vpp->comp_conf.Header.BufferSz = sizeof(vpp->comp_conf); vpp->comp_conf.NumInputStream = ctx->nb_inputs; - vpp->comp_conf.InputStream = av_mallocz_array(ctx->nb_inputs, - sizeof(*vpp->comp_conf.InputStream)); + vpp->comp_conf.InputStream = av_calloc(ctx->nb_inputs, + sizeof(*vpp->comp_conf.InputStream)); if (!vpp->comp_conf.InputStream) return AVERROR(ENOMEM); |