1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/ituh263enc: Use memset where appropriate

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-03 22:45:57 +01:00
parent 607bc17b52
commit 9e5a1b8693

View File

@ -30,6 +30,7 @@
#include "config_components.h" #include "config_components.h"
#include <limits.h> #include <limits.h>
#include <string.h>
#include "libavutil/attributes.h" #include "libavutil/attributes.h"
#include "libavutil/thread.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++) memset(umv_fcode_tab, 1, sizeof(umv_fcode_tab));
umv_fcode_tab[mv]= 1;
} }
static av_cold void init_uni_h263_rl_tab(const RLTable *rl, uint8_t *len_tab) static av_cold void init_uni_h263_rl_tab(const RLTable *rl, uint8_t *len_tab)