From 9ecc6e636b05505d56daadc1f51df7b43fe97b8f Mon Sep 17 00:00:00 2001 From: niksedk Date: Tue, 7 Dec 2021 07:03:15 +0100 Subject: [PATCH] Improve mp4 parsing - thx OmrSi :) --- src/libse/ContainerFormats/Mp4/Boxes/Mdia.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libse/ContainerFormats/Mp4/Boxes/Mdia.cs b/src/libse/ContainerFormats/Mp4/Boxes/Mdia.cs index eea6ee23b..54fa4e63b 100644 --- a/src/libse/ContainerFormats/Mp4/Boxes/Mdia.cs +++ b/src/libse/ContainerFormats/Mp4/Boxes/Mdia.cs @@ -41,7 +41,11 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.Mp4.Boxes timeScale = Mdhd.TimeScale; } - Minf = new Minf(fs, Position, timeScale, HandlerType, this); + var tempMinf = new Minf(fs, Position, timeScale, HandlerType, this); + if (tempMinf.Stbl != null) + { + Minf = tempMinf; + } } else if (Name == "hdlr") {