This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 124e8393e5b80ab294170d02e8e559c20a4a8832
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Aug 12 22:01:44 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Sat Aug 15 22:40:43 2026 +0200

    avcodec/mips/mpegvideo_{mmi,msa}: Use correct scantable
    
    This only worked because raster_end derived from
    the WMV1/2 intra scantable (i.e. derived from
    ff_wmv1_scantable[1]) is <= raster_end derived
    from the WMV1/2 inter scantable (i.e. derived
    from ff_wmv1_scantable[0]). But it broke the
    checkasm test.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/mips/mpegvideo_mmi.c | 2 +-
 libavcodec/mips/mpegvideo_msa.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mips/mpegvideo_mmi.c b/libavcodec/mips/mpegvideo_mmi.c
index 90bd90c147..31c028025a 100644
--- a/libavcodec/mips/mpegvideo_mmi.c
+++ b/libavcodec/mips/mpegvideo_mmi.c
@@ -51,7 +51,7 @@ void ff_dct_unquantize_h263_intra_mmi(const MPVContext *s, 
int16_t *block,
     if(s->ac_pred)
         nCoeffs = 63;
     else
-        nCoeffs = s->inter_scantable.raster_end[s->block_last_index[n]];
+        nCoeffs = s->intra_scantable.raster_end[s->block_last_index[n]];
 
     __asm__ volatile (
         "pxor       %[ftmp0],   %[ftmp0],       %[ftmp0]                \n\t"
diff --git a/libavcodec/mips/mpegvideo_msa.c b/libavcodec/mips/mpegvideo_msa.c
index a870a2cd79..2abdff6517 100644
--- a/libavcodec/mips/mpegvideo_msa.c
+++ b/libavcodec/mips/mpegvideo_msa.c
@@ -214,7 +214,7 @@ void ff_dct_unquantize_h263_intra_msa(const MPVContext *s,
     if (s->ac_pred)
         nCoeffs = 63;
     else
-        nCoeffs = s->inter_scantable.raster_end[s->block_last_index[index]];
+        nCoeffs = s->intra_scantable.raster_end[s->block_last_index[index]];
 
     h263_dct_unquantize_msa(block, qmul, qadd, nCoeffs, 1);
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to