[FFmpeg-cvslog] avcodec/msmpeg4dec: Remove redundant check
Andreas Rheinhardt
git at videolan.org
Tue Mar 4 14:35:19 EET 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Feb 25 21:51:20 2025 +0100| [2de9168b563c339d5888aecdd6b923e832cf97ff] | committer: Andreas Rheinhardt
avcodec/msmpeg4dec: Remove redundant check
Since d50635cd247e17fe16c63219b9ae80d45a8185b1 the
dct_unquantize_h263_intra functions have set the number of
coefficients to 63 in case of ac_pred, so ff_msmpeg4_decode_block()
doesn't have to bump it on its own.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2de9168b563c339d5888aecdd6b923e832cf97ff
---
libavcodec/msmpeg4dec.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/msmpeg4dec.c b/libavcodec/msmpeg4dec.c
index 7ba6f4b1e6..d42219f464 100644
--- a/libavcodec/msmpeg4dec.c
+++ b/libavcodec/msmpeg4dec.c
@@ -802,9 +802,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
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 */
- }
}
s->block_last_index[n] = i;
More information about the ffmpeg-cvslog
mailing list