[FFmpeg-cvslog] avcodec/mips/mpegvideo_mmi: Don't check alternate_scan unnecessarily

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


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jul  1 22:43:33 2024 +0200| [ab38ff9161b9cf52684d3ad1e2ccc60fa01eaa6d] | committer: Andreas Rheinhardt

avcodec/mips/mpegvideo_mmi: Don't check alternate_scan unnecessarily

Forgotten in 4f7aeffd8c3607aea6464a20eba4cc9106173c52.

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=ab38ff9161b9cf52684d3ad1e2ccc60fa01eaa6d
---

 libavcodec/mips/mpegvideo_mmi.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/libavcodec/mips/mpegvideo_mmi.c b/libavcodec/mips/mpegvideo_mmi.c
index 7af421db6b..87d4aafd8c 100644
--- a/libavcodec/mips/mpegvideo_mmi.c
+++ b/libavcodec/mips/mpegvideo_mmi.c
@@ -356,10 +356,7 @@ void ff_dct_unquantize_mpeg2_intra_mmi(MpegEncContext *s, int16_t *block,
 
     assert(s->block_last_index[n]>=0);
 
-    if (s->alternate_scan)
-        nCoeffs = 63;
-    else
-        nCoeffs = s->intra_scantable.raster_end[s->block_last_index[n]];
+    nCoeffs = s->intra_scantable.raster_end[s->block_last_index[n]];
 
     if (n < 4)
         block0 = block[0] * s->y_dc_scale;



More information about the ffmpeg-cvslog mailing list