[FFmpeg-devel] [PATCH 08/48] avcodec/mpegvideo_dec: Reindent after the previous commit
Andreas Rheinhardt
ffmpegagent at gmail.com
Mon Jun 23 16:36:08 EEST 2025
From: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
Also use dedicated variables for the accesses.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavcodec/mpegvideo_dec.c | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c
index c687f3a972..903d435e8c 100644
--- a/libavcodec/mpegvideo_dec.c
+++ b/libavcodec/mpegvideo_dec.c
@@ -1066,15 +1066,18 @@ void mpv_reconstruct_mb_internal(MpegEncContext *s, int16_t block[12][64],
static av_cold void debug_dct_coeffs(MPVContext *s, const int16_t block[][64])
{
- /* print DCT coefficients */
- av_log(s->avctx, AV_LOG_DEBUG, "DCT coeffs of MB at %dx%d:\n", s->mb_x, s->mb_y);
- for (int i = 0; i < 6; i++) {
- for (int j = 0; j < 64; j++) {
- av_log(s->avctx, AV_LOG_DEBUG, "%5d",
- block[i][s->idsp.idct_permutation[j]]);
- }
- av_log(s->avctx, AV_LOG_DEBUG, "\n");
- }
+ void *const logctx = s->avctx;
+ const uint8_t *const idct_permutation = s->idsp.idct_permutation;
+
+ /* print DCT coefficients */
+ av_log(logctx, AV_LOG_DEBUG, "DCT coeffs of MB at %dx%d:\n", s->mb_x, s->mb_y);
+ for (int i = 0; i < 6; i++) {
+ for (int j = 0; j < 64; j++) {
+ av_log(logctx, AV_LOG_DEBUG, "%5d",
+ block[i][idct_permutation[j]]);
+ }
+ av_log(logctx, AV_LOG_DEBUG, "\n");
+ }
}
void ff_mpv_reconstruct_mb(MpegEncContext *s, int16_t block[12][64])
--
ffmpeg-codebot
More information about the ffmpeg-devel
mailing list