From 4cce8baf9b11634524d264f3999703b5c8fa602d Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 27 May 2021 16:03:41 +0200 Subject: [PATCH] Fixed zero-length sortset causing crash in MP4 output --- src/output/output_mp4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/output_mp4.cpp b/src/output/output_mp4.cpp index 9ba6b522..5a15d062 100644 --- a/src/output/output_mp4.cpp +++ b/src/output/output_mp4.cpp @@ -1350,7 +1350,7 @@ namespace Mist{ // The remainder of this function handles non-live situations if (M.getLive()){ - sortSet.erase(sortSet.begin()); + if (sortSet.size()){sortSet.erase(sortSet.begin());} return; }