Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/ffmpeg/files/, media-video/ffmpeg/
Date: Tue, 17 Jul 2018 07:33:36
Message-Id: 1531812805.6d10649f4bd5343beaaab6c57638df2df3a3b3e7.aballier@gentoo
1 commit: 6d10649f4bd5343beaaab6c57638df2df3a3b3e7
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 17 07:31:16 2018 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 17 07:33:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d10649f
7
8 media-video/ffmpeg: bp us patch to fix mpv crash regression
9
10 Closes: https://bugs.gentoo.org/661220
11 Package-Manager: Portage-2.3.43, Repoman-2.3.10
12
13 ...{ffmpeg-3.4.3.ebuild => ffmpeg-3.4.3-r1.ebuild} | 1 +
14 media-video/ffmpeg/files/imgc.patch | 29 ++++++++++++++++++++++
15 2 files changed, 30 insertions(+)
16
17 diff --git a/media-video/ffmpeg/ffmpeg-3.4.3.ebuild b/media-video/ffmpeg/ffmpeg-3.4.3-r1.ebuild
18 similarity index 99%
19 rename from media-video/ffmpeg/ffmpeg-3.4.3.ebuild
20 rename to media-video/ffmpeg/ffmpeg-3.4.3-r1.ebuild
21 index aa8b226963b..cfc053565cd 100644
22 --- a/media-video/ffmpeg/ffmpeg-3.4.3.ebuild
23 +++ b/media-video/ffmpeg/ffmpeg-3.4.3-r1.ebuild
24 @@ -290,6 +290,7 @@ S=${WORKDIR}/${P/_/-}
25
26 PATCHES=(
27 "${FILESDIR}"/chromium.patch
28 + "${FILESDIR}"/imgc.patch
29 )
30
31 MULTILIB_WRAPPED_HEADERS=(
32
33 diff --git a/media-video/ffmpeg/files/imgc.patch b/media-video/ffmpeg/files/imgc.patch
34 new file mode 100644
35 index 00000000000..793299ad703
36 --- /dev/null
37 +++ b/media-video/ffmpeg/files/imgc.patch
38 @@ -0,0 +1,29 @@
39 +commit c1e172c2e14ef059dac632f7c67f081dfecd30dc
40 +Author: Simon Thelen <ffmpeg-dev@××××.de>
41 +Date: Tue Apr 3 14:41:33 2018 +0200
42 +
43 + avcodec/imgconvert: fix possible null pointer dereference
44 +
45 + regression since 354b26a3945eadd4ed8fcd801dfefad2566241de
46 +
47 + (cherry picked from commit 8c2c97403baf95d0facb53f03e468f023eb943e1)
48 +
49 +diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
50 +index 7b0005b308..1fd636c83d 100644
51 +--- a/libavcodec/imgconvert.c
52 ++++ b/libavcodec/imgconvert.c
53 +@@ -72,11 +72,12 @@ enum AVPixelFormat avcodec_find_best_pix_fmt_of_list(const enum AVPixelFormat *p
54 + int loss;
55 +
56 + for (i=0; pix_fmt_list[i] != AV_PIX_FMT_NONE; i++) {
57 +- loss = *loss_ptr;
58 ++ loss = loss_ptr ? *loss_ptr : 0;
59 + best = avcodec_find_best_pix_fmt_of_2(best, pix_fmt_list[i], src_pix_fmt, has_alpha, &loss);
60 + }
61 +
62 +- *loss_ptr = loss;
63 ++ if (loss_ptr)
64 ++ *loss_ptr = loss;
65 + return best;
66 + }
67 +