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

