SASANO, ports@, I'd like to to commit a fix for emulators/dosbox-x which switches it away from deprecated API in ffmpeg which prevents it to build against ffmpeg 9.0 Build tested against ffmpeg-9.0 and ffmpeg-8.1.2 Ok? Index: Makefile =================================================================== RCS file: /home/cvs/ports/emulators/dosbox-x/Makefile,v diff -u -p -r1.6 Makefile --- Makefile 30 Jun 2025 21:51:32 -0000 1.6 +++ Makefile 12 Aug 2026 20:17:50 -0000 @@ -3,6 +3,7 @@ BROKEN-sparc64= error:union MMX_reg has COMMENT= x86 with DOS emulator targeted at playing games VERSION= 2025.05.03 +REVISION= 0 DISTNAME= dosbox-x-${VERSION} CATEGORIES= games x11 emulators Index: patches/patch-src_hardware_hardware_cpp =================================================================== RCS file: /home/cvs/ports/emulators/dosbox-x/patches/patch-src_hardware_hardware_cpp,v diff -u -p -r1.1 patch-src_hardware_hardware_cpp --- patches/patch-src_hardware_hardware_cpp 21 Oct 2025 12:51:06 -0000 1.1 +++ patches/patch-src_hardware_hardware_cpp 12 Aug 2026 20:13:11 -0000 @@ -1,5 +1,7 @@ https://github.com/joncampbell123/dosbox-x/commit/d1a6e4d79857455ffee77ed9ac48bff516504f8d +Plus ffmpeg-9.0 fix + Index: src/hardware/hardware.cpp --- src/hardware/hardware.cpp.orig +++ src/hardware/hardware.cpp @@ -50,7 +52,18 @@ Index: src/hardware/hardware.cpp avcodec_free_context(&ffmpeg_vid_ctx); ffmpeg_vid_ctx = NULL; } -@@ -1271,7 +1268,7 @@ skip_shot: +@@ -813,6 +810,10 @@ void CAPTURE_AddImage(Bitu width, Bitu height, Bitu bp + Bitu i; + uint8_t doubleRow[SCALER_MAXWIDTH*4]; + Bitu countWidth = width; ++#if (C_AVCODEC) ++ const enum AVSampleFormat *sample_fmts; ++ int num_sample_fmts, ret; ++
No comments:
Post a Comment