[FFmpeg-cvslog] avcodec/ituh263dec: Reorder branches
Andreas Rheinhardt
git at videolan.org
Fri Mar 7 16:21:40 EET 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Mar 2 23:02:26 2025 +0100| [f5f2c37a52256589440a50dc43026b577acd6019] | committer: Andreas Rheinhardt
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 at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f5f2c37a52256589440a50dc43026b577acd6019
---
libavcodec/ituh263dec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index e0f3034e57..9fee33da71 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -541,6 +541,8 @@ static int h263_decode_block(MpegEncContext * s, int16_t * block,
scan_table = s->intra_scantable.permutated;
if (s->h263_aic && s->mb_intra) {
+ if (!coded)
+ goto not_coded;
rl = &ff_rl_intra_aic;
i = 0;
if (s->ac_pred) {
@@ -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;
}
@@ -669,8 +669,8 @@ retry:
block[j] = level;
}
}
-not_coded:
if (s->mb_intra && s->h263_aic) {
+not_coded:
h263_pred_acdc(s, block, n);
i = 63;
}
More information about the ffmpeg-cvslog
mailing list