Tuesday, October 29, 2024

[brad@comstyle.com: UPDATE: OpenSceneGraph - FFmpeg]

REVISION needs re-bumping, but otherwise this still applies.

+cc maintainer


----- Forwarded message from Brad Smith <brad@comstyle.com> -----

From: Brad Smith <brad@comstyle.com>
Date: Sat, 3 Aug 2024 13:04:01 -0400
To: ports@openbsd.org
Subject: UPDATE: OpenSceneGraph - FFmpeg

Here is a diff to fix building OpenSceneGraph with newer FFmpeg.

Please test.


Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/openscenegraph/Makefile,v
retrieving revision 1.34
diff -u -p -u -p -r1.34 Makefile
--- Makefile 15 Nov 2023 17:55:22 -0000 1.34
+++ Makefile 3 Aug 2024 16:51:08 -0000
@@ -10,7 +10,7 @@ GH_ACCOUNT = openscenegraph
GH_PROJECT = OpenSceneGraph
GH_TAGNAME = OpenSceneGraph-$V
DISTNAME = openscenegraph-${V}
-REVISION = 5
+REVISION = 6

SUBST_VARS += V

Index: patches/patch-src_osgPlugins_ffmpeg_FFmpegDecoderAudio_cpp
===================================================================
RCS file: patches/patch-src_osgPlugins_ffmpeg_FFmpegDecoderAudio_cpp
diff -N patches/patch-src_osgPlugins_ffmpeg_FFmpegDecoderAudio_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_osgPlugins_ffmpeg_FFmpegDecoderAudio_cpp 3 Aug 2024 16:51:08 -0000
@@ -0,0 +1,83 @@
+Fix building with newer FFmpeg
+
+Index: src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp
+--- src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp.orig
++++ src/osgPlugins/ffmpeg/FFmpegDecoderAudio.cpp
+@@ -13,15 +13,6 @@
+ #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
+

No comments:

Post a Comment