SubtitleEdit/libse/SubtitleFormats/ScenaristClosedCaptionsDropFrame.cs

21 lines
770 B
C#
Raw Normal View History

2016-02-08 21:11:03 +01:00
using System.Text.RegularExpressions;
namespace Nikse.SubtitleEdit.Core.SubtitleFormats
{
public class ScenaristClosedCaptionsDropFrame : ScenaristClosedCaptions
{
//00:01:00:29 9420 9420 94ae 94ae 94d0 94d0 4920 f761 7320 ... semi colon (instead of colon) before frame number is used to indicate drop frame
2016-06-07 06:31:03 +02:00
private const string TimeCodeRegEx = @"^\d+:\d\d:\d\d[;,]\d\d\t";
private static readonly Regex Regex = new Regex(TimeCodeRegEx, RegexOptions.Compiled);
protected override Regex RegexTimeCodes => Regex;
2016-02-08 21:11:03 +01:00
public ScenaristClosedCaptionsDropFrame()
{
DropFrame = true;
}
public override string Name => "Scenarist Closed Captions Drop Frame";
2016-02-08 21:11:03 +01:00
}
}