diff options
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r-- | libavcodec/dnxhddec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index d113c1db7b..9ecd220e7f 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -103,7 +103,7 @@ static av_cold int dnxhd_decode_init(AVCodecContext *avctx) avctx->coded_width = FFALIGN(avctx->width, 16); avctx->coded_height = FFALIGN(avctx->height, 16); - ctx->rows = av_mallocz_array(avctx->thread_count, sizeof(RowContext)); + ctx->rows = av_calloc(avctx->thread_count, sizeof(*ctx->rows)); if (!ctx->rows) return AVERROR(ENOMEM); |