[FFmpeg-cvslog] avcodec/sanm: ignore codec48 compression type 6

Manuel Lauss git at videolan.org
Fri May 9 08:30:54 EEST 2025


ffmpeg | branch: master | Manuel Lauss <manuel.lauss at gmail.com> | Tue Apr 29 12:42:40 2025 +0200| [7f0b7b049696eddef165d6c30ba9e0527555ccd7] | committer: Manuel Lauss

avcodec/sanm: ignore codec48 compression type 6

Some videos of "StarWars - Making Magic" have this subcompression
type: data just consists of the 16 byte codec48 header; the DOS player
and the c48 decoder in the "Mysteries of the Sith" game engine ignore it.

Signed-off-by: Manuel Lauss <manuel.lauss at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f0b7b049696eddef165d6c30ba9e0527555ccd7
---

 libavcodec/sanm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 6b1da2e30c..b00839c3d9 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 of "Star Wars - Making Magic", ignored.
+        break;
     default:
         avpriv_report_missing_feature(ctx->avctx,
                                       "Subcodec 48 compression %d", compr);



More information about the ffmpeg-cvslog mailing list