[FFmpeg-devel] [PATCH 1/3] avcodec/sanm: ignore codec48 compression type 6
Manuel Lauss
manuel.lauss at gmail.com
Thu May 1 12:57:59 EEST 2025
Some videos of "StarWars - Making Magic" have this subcompression
type: data just consists of the 16 byte codec48 header; the DOS player
simply treats it like nothing to do.
Signed-off-by: Manuel Lauss <manuel.lauss at gmail.com>
---
libavcodec/sanm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 6b1da2e30c..e436b5ab8e 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -1586,7 +1586,8 @@ static int old_codec48(SANMVideoContext *ctx, int width, int height)
return AVERROR_INVALIDDATA;
codec47_comp1(ctx, dst, width, height, width);
break;
-
+ case 6: /* in some videos, but does nothing */
+ break;
default:
avpriv_report_missing_feature(ctx->avctx,
"Subcodec 48 compression %d", compr);
--
2.49.0
More information about the ffmpeg-devel
mailing list