Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/handbrake/, media-video/handbrake/files/
Date: Wed, 19 Jan 2022 01:16:03
Message-Id: 1642554928.0ad18e0ac69d1dc63a3bef23a81ae347a396d279.sam@gentoo
1 commit: 0ad18e0ac69d1dc63a3bef23a81ae347a396d279
2 Author: James Beddek <telans <AT> posteo <DOT> de>
3 AuthorDate: Sun Jan 16 03:47:00 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 19 01:15:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ad18e0a
7
8 media-video/handbrake: add ffmpeg 5.0 patch
9
10 Signed-off-by: James Beddek <telans <AT> posteo.de>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../files/handbrake-1.5.1-ffmpeg-5.0.patch | 40 ++++++++++++++++++++++
14 media-video/handbrake/handbrake-1.5.1.ebuild | 3 ++
15 2 files changed, 43 insertions(+)
16
17 diff --git a/media-video/handbrake/files/handbrake-1.5.1-ffmpeg-5.0.patch b/media-video/handbrake/files/handbrake-1.5.1-ffmpeg-5.0.patch
18 new file mode 100644
19 index 000000000000..643605076294
20 --- /dev/null
21 +++ b/media-video/handbrake/files/handbrake-1.5.1-ffmpeg-5.0.patch
22 @@ -0,0 +1,40 @@
23 +# https://git.exherbo.org/media.git/commit/?id=b7a022928103184b7528d0e40ad0a4edcfbbd7a4
24 +
25 +From 8a9d11e96b771422247c458ae6b07f3a13848f3a Mon Sep 17 00:00:00 2001
26 +From: Timo Gurr <timo.gurr@×××××.com>
27 +Date: Sat, 15 Jan 2022 20:44:53 +0100
28 +Subject: [PATCH] FFmpeg deprecations fixes for FFmpeg >= 5
29 +
30 +avcodec.h stopped including bsf.h per FFmpeg commit
31 +57b5ec6ba7df [1]. Fixes compilation error against
32 +FFmpeg later than the mentioned commit.
33 +[1] https://github.com/FFmpeg/FFmpeg/commit/57b5ec6ba7df442caebc401c4a7ef3ebc066b519
34 +---
35 + libhb/decavcodec.c | 1 +
36 + libhb/muxavformat.c | 1 +
37 + 2 files changed, 2 insertions(+)
38 +
39 +diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
40 +index 372f86f82cf..e7a63289c0f 100644
41 +--- a/libhb/decavcodec.c
42 ++++ b/libhb/decavcodec.c
43 +@@ -41,6 +41,7 @@
44 + #include "handbrake/handbrake.h"
45 + #include "handbrake/hbffmpeg.h"
46 + #include "handbrake/hbavfilter.h"
47 ++#include "libavcodec/bsf.h"
48 + #include "libavfilter/avfilter.h"
49 + #include "libavfilter/buffersrc.h"
50 + #include "libavfilter/buffersink.h"
51 +diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c
52 +index 232edd0942a..ad8e2a1d8fa 100644
53 +--- a/libhb/muxavformat.c
54 ++++ b/libhb/muxavformat.c
55 +@@ -8,6 +8,7 @@
56 + */
57 +
58 + #include <ogg/ogg.h>
59 ++#include "libavcodec/bsf.h"
60 + #include "libavformat/avformat.h"
61 + #include "libavutil/avstring.h"
62 + #include "libavutil/intreadwrite.h"
63
64 diff --git a/media-video/handbrake/handbrake-1.5.1.ebuild b/media-video/handbrake/handbrake-1.5.1.ebuild
65 index e8bee8b1fe39..c5f8eebf74a2 100644
66 --- a/media-video/handbrake/handbrake-1.5.1.ebuild
67 +++ b/media-video/handbrake/handbrake-1.5.1.ebuild
68 @@ -96,6 +96,9 @@ PATCHES=(
69
70 # Fix x265 linkage... again again #730034
71 "${FILESDIR}/${PN}-1.3.3-x265-link.patch"
72 +
73 + # Fix compatability with ffmpeg-5.0
74 + "${FILESDIR}/${PN}-1.5.1-ffmpeg-5.0.patch"
75 )
76
77 src_prepare() {