From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C6883158090 for ; Wed, 18 May 2022 12:51:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9A70E08BD; Wed, 18 May 2022 12:51:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF20EE08BD for ; Wed, 18 May 2022 12:51:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 82B9B341797 for ; Wed, 18 May 2022 12:50:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0FC4142F for ; Wed, 18 May 2022 12:50:58 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1652878195.46b5fab594719d2d438256d257cae5fddd07f538.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/subtitlecomposer/, media-video/subtitlecomposer/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg-5.patch media-video/subtitlecomposer/subtitlecomposer-0.7.1.ebuild X-VCS-Directories: media-video/subtitlecomposer/files/ media-video/subtitlecomposer/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 46b5fab594719d2d438256d257cae5fddd07f538 X-VCS-Branch: master Date: Wed, 18 May 2022 12:50:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 86e00cac-127f-4e1f-8e68-2d56f2426fda X-Archives-Hash: 4f0cf8b1857e32784f28786765b7216c commit: 46b5fab594719d2d438256d257cae5fddd07f538 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed May 18 12:49:55 2022 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed May 18 12:49:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46b5fab5 media-video/subtitlecomposer: Fix build with >=ffmpeg-5 Upstream commit 4f4f560e40ba0b760cf688eb024be3cc734ca347 Closes: https://bugs.gentoo.org/834416 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> .../files/subtitlecomposer-0.7.1-ffmpeg-5.patch | 65 ++++++++++++++++++++++ .../subtitlecomposer/subtitlecomposer-0.7.1.ebuild | 1 + 2 files changed, 66 insertions(+) diff --git a/media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg-5.patch b/media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg-5.patch new file mode 100644 index 000000000000..a0314fb06820 --- /dev/null +++ b/media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg-5.patch @@ -0,0 +1,65 @@ +From 4f4f560e40ba0b760cf688eb024be3cc734ca347 Mon Sep 17 00:00:00 2001 +From: Mladen Milinkovic +Date: Tue, 25 Jan 2022 14:01:56 +0100 +Subject: [PATCH] Fix compilation with ffmpeg5 #63 + +--- + src/streamprocessor/streamprocessor.cpp | 2 +- + src/videoplayer/backend/decoder.h | 1 + + src/videoplayer/backend/framequeue.h | 1 + + src/videoplayer/backend/streamdemuxer.cpp | 2 +- + 4 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/streamprocessor/streamprocessor.cpp b/src/streamprocessor/streamprocessor.cpp +index b86795e..8faf8a2 100644 +--- a/src/streamprocessor/streamprocessor.cpp ++++ b/src/streamprocessor/streamprocessor.cpp +@@ -195,7 +195,7 @@ StreamProcessor::findStream(int streamType, int streamIndex, bool imageSub) + int ret; + char errorText[1024]; + +- AVCodec *dec = avcodec_find_decoder(m_avStream->codecpar->codec_id); ++ const AVCodec *dec = avcodec_find_decoder(m_avStream->codecpar->codec_id); + if(!dec) { + qWarning() << "Failed to find decoder for stream" << i; + return false; +diff --git a/src/videoplayer/backend/decoder.h b/src/videoplayer/backend/decoder.h +index 4ab95b2..fb6840d 100644 +--- a/src/videoplayer/backend/decoder.h ++++ b/src/videoplayer/backend/decoder.h +@@ -11,6 +11,7 @@ + #include + + extern "C" { ++#include "libavcodec/avcodec.h" + #include "libavformat/avformat.h" + } + +diff --git a/src/videoplayer/backend/framequeue.h b/src/videoplayer/backend/framequeue.h +index dc9b2fa..ece1166 100644 +--- a/src/videoplayer/backend/framequeue.h ++++ b/src/videoplayer/backend/framequeue.h +@@ -9,6 +9,7 @@ + #define FRAMEQUEUE_H + + extern "C" { ++#include "libavcodec/avcodec.h" + #include "libavformat/avformat.h" + } + +diff --git a/src/videoplayer/backend/streamdemuxer.cpp b/src/videoplayer/backend/streamdemuxer.cpp +index 1e339b3..e8320ea 100644 +--- a/src/videoplayer/backend/streamdemuxer.cpp ++++ b/src/videoplayer/backend/streamdemuxer.cpp +@@ -230,7 +230,7 @@ StreamDemuxer::componentOpen(int streamIndex) + { + AVFormatContext *ic = m_vs->fmtContext; + AVCodecContext *avCtx; +- AVCodec *codec; ++ const AVCodec *codec; + AVDictionary *opts = nullptr; + AVDictionaryEntry *t = nullptr; + int sampleRate, nbChannels; +-- +GitLab + diff --git a/media-video/subtitlecomposer/subtitlecomposer-0.7.1.ebuild b/media-video/subtitlecomposer/subtitlecomposer-0.7.1.ebuild index 3ff7e5e962a5..54143eba37a9 100644 --- a/media-video/subtitlecomposer/subtitlecomposer-0.7.1.ebuild +++ b/media-video/subtitlecomposer/subtitlecomposer-0.7.1.ebuild @@ -46,6 +46,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" "${FILESDIR}/${P}-gles-support.patch" # bug 820035 + "${FILESDIR}/${P}-ffmpeg-5.patch" # bug 834416 ) src_configure() {