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

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.)

Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-02 23:02:26 +01:00
parent 17ff442adb
commit f5f2c37a52

View File

@ -541,6 +541,8 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block,
scan_table = s->intra_scantable.permutated; scan_table = s->intra_scantable.permutated;
if (s->h263_aic && s->mb_intra) { if (s->h263_aic && s->mb_intra) {
if (!coded)
goto not_coded;
rl = &ff_rl_intra_aic; rl = &ff_rl_intra_aic;
i = 0; i = 0;
if (s->ac_pred) { if (s->ac_pred) {
@ -587,8 +589,6 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block,
i = 0; i = 0;
} }
if (!coded) { if (!coded) {
if (s->mb_intra && s->h263_aic)
goto not_coded;
s->block_last_index[n] = i - 1; s->block_last_index[n] = i - 1;
return 0; return 0;
} }
@ -669,8 +669,8 @@ retry:
block[j] = level; block[j] = level;
} }
} }
not_coded:
if (s->mb_intra && s->h263_aic) { if (s->mb_intra && s->h263_aic) {
not_coded:
h263_pred_acdc(s, block, n); h263_pred_acdc(s, block, n);
i = 63; i = 63;
} }