[FFmpeg-cvslog] avcodec/ituh263enc: Use memset where appropriate

Andreas Rheinhardt git at videolan.org
Fri Mar 7 16:21:36 EET 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Mar  3 22:45:57 2025 +0100| [9e5a1b8693e0bef2b8478f001b89fd19f873d56d] | committer: Andreas Rheinhardt

avcodec/ituh263enc: Use memset where appropriate

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e5a1b8693e0bef2b8478f001b89fd19f873d56d
---

 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 <limits.h>
+#include <string.h>
 
 #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)



More information about the ffmpeg-cvslog mailing list