summarylogtreecommitdiffstats
path: root/12f4d7f49d0b1a7fc02b0836521a285e7b6bac9d.patch
blob: 7e0d873992a5bb9a0f5bff0bba7570bd8068cb8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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