Allow up to 2 mb ebu stl sub files

This commit is contained in:
Nikolaj Olsson 2018-08-24 10:50:44 +02:00
parent 0f218961bb
commit 7c4a61a152

View File

@ -803,7 +803,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
if (!string.IsNullOrEmpty(fileName) && File.Exists(fileName)) if (!string.IsNullOrEmpty(fileName) && File.Exists(fileName))
{ {
var fi = new FileInfo(fileName); var fi = new FileInfo(fileName);
if (fi.Length >= 1024 + 128 && fi.Length < 1024000) // not too small or too big if (fi.Length >= 1024 + 128 && fi.Length < 2048000) // not too small or too big
{ {
try try
{ {