From 01802e115ca0868398d56d948d3ab818b1cc4fd3 Mon Sep 17 00:00:00 2001 From: Maxime Gervais Date: Sun, 1 Sep 2024 23:18:19 +0200 Subject: [PATCH] QCli: Fix crash with mkv attachments Signed-off-by: Maxime Gervais --- Source/Core/FileInformation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/FileInformation.cpp b/Source/Core/FileInformation.cpp index 66cff73a3..36d86e9ef 100644 --- a/Source/Core/FileInformation.cpp +++ b/Source/Core/FileInformation.cpp @@ -951,7 +951,8 @@ FileInformation::FileInformation (SignalServer* signalServer, const QString &Fil ++AudioPos; } - Stats.push_back(Stat); + if (Stat) + Stats.push_back(Stat); } streamsStats = new StreamsStats(orderedStreams, FormatContext);