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


- Log -----------------------------------------------------------------
commit d4eb01f2814431aef1f4160a00ed495560ff35bd
Author:     Manuel Lauss <manuel.la...@gmail.com>
AuthorDate: Thu Aug 21 09:44:25 2025 +0200
Commit:     michaelni <mich...@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.la...@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
-- 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to