[FFmpeg-cvslog] [ffmpeg] branch master updated. d4eb01f281 avcodec/sanm: handle xpal cmd 0

ffmpeg-git at ffmpeg.org ffmpeg-git at ffmpeg.org
Thu Aug 21 19:25:02 EEST 2025


The branch, master has been updated
       via  d4eb01f2814431aef1f4160a00ed495560ff35bd (commit)
      from  6825f6f1e2fbce956dfdc97e48f7e39467584058 (commit)


- Log -----------------------------------------------------------------
commit d4eb01f2814431aef1f4160a00ed495560ff35bd
Author:     Manuel Lauss <manuel.lauss at gmail.com>
AuthorDate: Thu Aug 21 09:44:25 2025 +0200
Commit:     michaelni <michael at niedermayer.cc>
CommitDate: Thu Aug 21 16:24:26 2025 +0000

    avcodec/sanm: handle xpal cmd 0
    
    It's like cmd 2. Fixes the Rebel Assault 1 Intro Video "C1BLOCK.ANM"
    crossfade from planet view to space view and subsequent wrong colors.
    
    Signed-off-by: Manuel Lauss <manuel.lauss at gmail.com>

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index e4308af647..4cf1ac5221 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -1888,7 +1888,7 @@ static int process_xpal(SANMVideoContext *ctx, int size)
             }
             *pal++ = 0xFFU << 24 | c[0] << 16 | c[1] << 8 | c[2];
         }
-    } else if (cmd == 2) {
+    } else if (cmd == 0 || cmd == 2) {
         if (size < PALETTE_DELTA * 2 + 4) {
             av_log(ctx->avctx, AV_LOG_ERROR,
                    "Incorrect palette change block size %"PRIu32".\n", size);

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/sanm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 



More information about the ffmpeg-cvslog mailing list