Files
ersatztv/ErsatzTV.FFmpeg/OutputOption/VideoTrackTimescaleOutputOption.cs
T
Jason DoveandGitHub 245c4ec359 code analysis and cleanup (#1411)
* cleanup scanner project

* cleanup infrastructure projects

* cleanup ffmpeg project

* cleanup core project

* cleanup app project

* cleanup main project

* update dependencies

* code cleanup
2023-09-03 06:23:42 -05:00

17 lines
552 B
C#

using System.Globalization;
namespace ErsatzTV.FFmpeg.OutputOption;
public class VideoTrackTimescaleOutputOption : OutputOption
{
private readonly int _timeScale;
public VideoTrackTimescaleOutputOption(int timeScale) => _timeScale = timeScale;
public override IList<string> OutputOptions => new List<string>
{ "-video_track_timescale", _timeScale.ToString(CultureInfo.InvariantCulture) };
public override FrameState NextState(FrameState currentState) =>
currentState with { VideoTrackTimeScale = _timeScale };
}