diff options
author | Manuel Lauss <manuel.lauss@gmail.com> | 2025-08-21 09:44:25 +0200 |
---|---|---|
committer | michaelni <michael@niedermayer.cc> | 2025-08-21 16:24:26 +0000 |
commit | d4eb01f2814431aef1f4160a00ed495560ff35bd (patch) | |
tree | be58b1809ffd3637e7e85ddaa4212b3dd3be1429 | |
parent | 6825f6f1e2fbce956dfdc97e48f7e39467584058 (diff) | |
download | ffmpeg-d4eb01f2814431aef1f4160a00ed495560ff35bd.tar.gz |
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@gmail.com>
-rw-r--r-- | libavcodec/sanm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |