summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-15 01:44:35 +0100
committerSam James <sam@gentoo.org>2022-10-15 01:44:47 +0100
commit2df30a8bd2f70b44639ed94b5ff8b1680944dae1 (patch)
tree25ac4937d523129e3ea71eb49eaf6bb4e348466f /media-libs/opencv/files
parentdev-dotnet/dotnet-sdk-bin: drop old 6.0.400-r1 (diff)
downloadgentoo-2df30a8bd2f70b44639ed94b5ff8b1680944dae1.tar.gz
gentoo-2df30a8bd2f70b44639ed94b5ff8b1680944dae1.tar.bz2
gentoo-2df30a8bd2f70b44639ed94b5ff8b1680944dae1.zip
media-libs/opencv: fix build with ffmpeg 5
Closes: https://bugs.gentoo.org/876748 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/opencv/files')
-rw-r--r--media-libs/opencv/files/opencv-4.6.0-fix-ffmpeg-5.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/media-libs/opencv/files/opencv-4.6.0-fix-ffmpeg-5.patch b/media-libs/opencv/files/opencv-4.6.0-fix-ffmpeg-5.patch
new file mode 100644
index 000000000000..557576a8747a
--- /dev/null
+++ b/media-libs/opencv/files/opencv-4.6.0-fix-ffmpeg-5.patch
@@ -0,0 +1,19 @@
+https://github.com/opencv/opencv/issues/22418
+https://github.com/opencv/opencv/commit/496eed950f6d0e7fd92619d47e3cec8f06e96ace
+https://bugs.gentoo.org/876748
+
+From: Jochen Sprickerhof <jspricke@debian.org>
+Date: Mon, 8 Aug 2022 21:10:13 +0200
+Subject: [PATCH] Add missing header for LIBAVCODEC_VERSION_INT
+
+--- a/modules/videoio/src/ffmpeg_codecs.hpp
++++ b/modules/videoio/src/ffmpeg_codecs.hpp
+@@ -60,6 +60,7 @@ extern "C" {
+ #include <errno.h>
+ #endif
+
++#include <libavcodec/version.h>
+ #include <libavformat/avformat.h>
+
+ #ifdef __cplusplus
+