diff options
Diffstat (limited to 'media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg6-1.patch')
-rw-r--r-- | media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg6-1.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg6-1.patch b/media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg6-1.patch new file mode 100644 index 000000000000..7e0d873992a5 --- /dev/null +++ b/media-video/subtitlecomposer/files/subtitlecomposer-0.7.1-ffmpeg6-1.patch @@ -0,0 +1,25 @@ +From 12f4d7f49d0b1a7fc02b0836521a285e7b6bac9d Mon Sep 17 00:00:00 2001 +From: Albert Astals Cid <aacid@kde.org> +Date: Sat, 4 Mar 2023 10:58:04 +0100 +Subject: [PATCH] Use non deprecated ffmpeg api + +--- + src/videoplayer/backend/streamdemuxer.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/videoplayer/backend/streamdemuxer.cpp b/src/videoplayer/backend/streamdemuxer.cpp +index e3bd808a..39222d8c 100644 +--- a/src/videoplayer/backend/streamdemuxer.cpp ++++ b/src/videoplayer/backend/streamdemuxer.cpp +@@ -504,7 +504,7 @@ StreamDemuxer::run() + + { // find_stream_info + const int origNbStreams = ic->nb_streams; +- AVDictionary **opts = (AVDictionary **)av_mallocz_array(origNbStreams, sizeof(*opts)); ++ AVDictionary **opts = (AVDictionary **)av_calloc(origNbStreams, sizeof(*opts)); + if(!opts) { + av_log(nullptr, AV_LOG_ERROR, "Could not alloc memory for stream options.\n"); + goto cleanup; +-- +GitLab + |