Files
ersatztv/ErsatzTV.FFmpeg/Option/VideoBufferSizeOutputOption.cs
T
Jason DoveandGitHub c02b83d0d6 code cleanup (#743)
* update tools

* run code cleanup

* update dependencies
2022-04-19 17:47:18 -05:00

19 lines
524 B
C#

namespace ErsatzTV.FFmpeg.Option;
public class VideoBufferSizeOutputOption : OutputOption
{
private readonly int _decoderBufferSize;
public VideoBufferSizeOutputOption(int decoderBufferSize) => _decoderBufferSize = decoderBufferSize;
public override IList<string> OutputOptions => new List<string>
{
"-bufsize:v", $"{_decoderBufferSize}k"
};
public override FrameState NextState(FrameState currentState) => currentState with
{
VideoBufferSize = _decoderBufferSize
};
}