[FFmpeg-devel] [PATCH 35/47] avcodec/mpegvideo: Combine stores
Andreas Rheinhardt
ffmpegagent at gmail.com
Sun Jun 15 19:54:26 EEST 2025
From: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
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 */
--
ffmpeg-codebot
More information about the ffmpeg-devel
mailing list