Add a little more safety to Skippers

This commit is contained in:
Matt Nadareski
2020-12-10 21:29:17 -08:00
parent 05a44dd954
commit 7141904fc8
4 changed files with 34 additions and 25 deletions

View File

@@ -295,6 +295,7 @@ namespace SabreTools.FileTypes
// Try to match the supplied header skipper
if (header != null)
{
SkipperMatch.Init();
var rule = SkipperMatch.GetMatchingRule(input, Path.GetFileNameWithoutExtension(header));
// If there's a match, transform the stream before getting info