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

avcodec/mpegvideo_dec: Reindent after the previous commit

Also use dedicated variables for the accesses.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-06-15 22:24:58 +02:00
parent 261d8eb5dd
commit 8cff637cf0

View File

@ -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]) static av_cold void debug_dct_coeffs(MPVContext *s, const int16_t block[][64])
{ {
/* print DCT coefficients */ void *const logctx = s->avctx;
av_log(s->avctx, AV_LOG_DEBUG, "DCT coeffs of MB at %dx%d:\n", s->mb_x, s->mb_y); const uint8_t *const idct_permutation = s->idsp.idct_permutation;
for (int i = 0; i < 6; i++) {
for (int j = 0; j < 64; j++) { /* print DCT coefficients */
av_log(s->avctx, AV_LOG_DEBUG, "%5d", av_log(logctx, AV_LOG_DEBUG, "DCT coeffs of MB at %dx%d:\n", s->mb_x, s->mb_y);
block[i][s->idsp.idct_permutation[j]]); for (int i = 0; i < 6; i++) {
} for (int j = 0; j < 64; j++) {
av_log(s->avctx, AV_LOG_DEBUG, "\n"); 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]) void ff_mpv_reconstruct_mb(MpegEncContext *s, int16_t block[12][64])