From 73c4dcdccd958d1ccdb7a64e42f52c270f500ab5 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 3 Mar 2025 22:45:57 +0100 Subject: [PATCH 16/40] avcodec/ituh263enc: Use memset where appropriate Signed-off-by: Andreas Rheinhardt --- libavcodec/ituh263enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c index 8313b2c2c1..2d750439d1 100644 --- a/libavcodec/ituh263enc.c +++ b/libavcodec/ituh263enc.c @@ -30,6 +30,7 @@ #include "config_components.h" #include +#include #include "libavutil/attributes.h" #include "libavutil/thread.h" @@ -93,8 +94,7 @@ static av_cold void init_mv_penalty_and_fcode(void) } } - for (int mv = 0; mv < MAX_MV * 2 + 1; mv++) - umv_fcode_tab[mv]= 1; + memset(umv_fcode_tab, 1, sizeof(umv_fcode_tab)); } static av_cold void init_uni_h263_rl_tab(const RLTable *rl, uint8_t *len_tab) -- 2.45.2