[neon/extras/subtitlecomposer/Neon/release] debian/patches: add upstream salsa patch

Carlos De Maine null at kde.org
Fri Apr 21 22:45:27 BST 2023


Git commit 96a8154b3c1566889ed9abed57c475c978219c9a by Carlos De Maine.
Committed on 21/04/2023 at 21:45.
Pushed by carlosdem into branch 'Neon/release'.

add upstream salsa patch

M  +1    -0    debian/patches/series
A  +32   -0    debian/patches/upstream_VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch

https://invent.kde.org/neon/extras/subtitlecomposer/commit/96a8154b3c1566889ed9abed57c475c978219c9a

diff --git a/debian/patches/series b/debian/patches/series
index 4fb0c09..51c5b74 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 upstream_Fix-compilation-with-ffmpeg5-63.patch
+upstream_VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch
diff --git a/debian/patches/upstream_VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch b/debian/patches/upstream_VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch
new file mode 100644
index 0000000..41fc996
--- /dev/null
+++ b/debian/patches/upstream_VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch
@@ -0,0 +1,32 @@
+From d8f9797d9c0d45fa9f4402f79c539544b74d2cc7 Mon Sep 17 00:00:00 2001
+From: Mladen Milinkovic <maxrd2 at smoothware.net>
+Date: Fri, 1 Apr 2022 08:35:17 +0200
+Subject: [PATCH] VideoPlayer: Fix usage of deprecated/removed AVCodec option
+ #68
+
+AVCodecContext.refcounted_frames was useful for deprecated API only
+(avcodec_decode_video2/avcodec_decode_audio4). The new decode APIs
+(avcodec_send_packet/avcodec_receive_frame) always work with reference
+counted frames
+
+https://github.com/FFmpeg/FFmpeg/commit/b1cf151c4dfdbd049cd41863b4e0cde927585e17
+---
+ src/videoplayer/backend/streamdemuxer.cpp | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/videoplayer/backend/streamdemuxer.cpp b/src/videoplayer/backend/streamdemuxer.cpp
+index e8320ea..7173306 100644
+--- a/src/videoplayer/backend/streamdemuxer.cpp
++++ b/src/videoplayer/backend/streamdemuxer.cpp
+@@ -286,8 +286,6 @@ StreamDemuxer::componentOpen(int streamIndex)
+ 		av_dict_set(&opts, "threads", "auto", 0);
+ 	if(stream_lowres)
+ 		av_dict_set_int(&opts, "lowres", stream_lowres, 0);
+-	if(avCtx->codec_type == AVMEDIA_TYPE_VIDEO || avCtx->codec_type == AVMEDIA_TYPE_AUDIO)
+-		av_dict_set(&opts, "refcounted_frames", "1", 0);
+ 	if((ret = avcodec_open2(avCtx, codec, &opts)) < 0) {
+ 		goto fail;
+ 	}
+-- 
+2.37.2
+


More information about the Neon-commits mailing list