[FFmpeg-cvslog] avcodec/msmpeg4dec: Avoid branch

Andreas Rheinhardt git at videolan.org
Tue Mar 4 14:35:17 EET 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jul  1 19:52:34 2024 +0200| [18fc118f6541467d1493e71831df195f91cca1c7] | committer: Andreas Rheinhardt

avcodec/msmpeg4dec: Avoid branch

A non-LTO-compiler can't optimize this away.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18fc118f6541467d1493e71831df195f91cca1c7
---

 libavcodec/msmpeg4dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/msmpeg4dec.c b/libavcodec/msmpeg4dec.c
index da65ea797f..7ba6f4b1e6 100644
--- a/libavcodec/msmpeg4dec.c
+++ b/libavcodec/msmpeg4dec.c
@@ -799,8 +799,8 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
     }
     CLOSE_READER(re, &s->gb);
   }
- not_coded:
     if (s->mb_intra) {
+ not_coded:
         ff_mpeg4_pred_ac(s, block, n, dc_pred_dir);
         if (s->ac_pred) {
             i = 63; /* XXX: not optimal */



More information about the ffmpeg-cvslog mailing list