[FFmpeg-cvslog] avcodec/mpegvideo: Combine stores

Andreas Rheinhardt git at videolan.org
Sat Jun 21 23:21:13 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Jun 13 03:17:22 2025 +0200| [b2661569b1298e88d1622b68d86bbb6a6149b544] | committer: Andreas Rheinhardt

avcodec/mpegvideo: Combine stores

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

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

 libavcodec/mpegvideo.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index b481d1eef4..64563a509b 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -497,10 +497,8 @@ void ff_clean_intra_table_entries(MpegEncContext *s)
     unsigned vxy = s->block_index[5];
     int16_t *dc_val = s->dc_val[0];
 
-    s->dc_val[0][xy           ] =
-    s->dc_val[0][xy + 1       ] =
-    s->dc_val[0][xy     + wrap] =
-    s->dc_val[0][xy + 1 + wrap] = 1024;
+    AV_WN32A(dc_val + xy,        1024 << 16 | 1024);
+    AV_WN32 (dc_val + xy + wrap, 1024 << 16 | 1024);
     dc_val[uxy] =
     dc_val[vxy] = 1024;
     /* ac pred */



More information about the ffmpeg-cvslog mailing list