From d1d16bc306b0d90d1a1ed399433ab38c50d3e9fc Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 2 Mar 2025 23:02:26 +0100 Subject: [PATCH 18/40] avcodec/ituh263dec: Reorder branches (To perform this optimization a compiler would have to look at both ff_rv_decode_dc() and av_log(). The latter seems very unlikely.) Signed-off-by: Andreas Rheinhardt --- libavcodec/ituh263dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c index e0f3034e57..93349a3b0e 100644 --- a/libavcodec/ituh263dec.c +++ b/libavcodec/ituh263dec.c @@ -543,6 +543,8 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block, if (s->h263_aic && s->mb_intra) { rl = &ff_rl_intra_aic; i = 0; + if (!coded) + goto not_coded; if (s->ac_pred) { if (s->h263_aic_dir) scan_table = s->permutated_intra_v_scantable; /* left */ @@ -587,8 +589,6 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block, i = 0; } if (!coded) { - if (s->mb_intra && s->h263_aic) - goto not_coded; s->block_last_index[n] = i - 1; return 0; } -- 2.45.2