Updated RawVideoPipeSource.cs

Former-commit-id: 9a4d200483
This commit is contained in:
Максим Багрянцев 2020-04-27 19:47:56 +03:00
parent e21880c4a1
commit 9773828a62

View file

@ -31,11 +31,11 @@ public string GetFormat()
{
if (!framesEnumerator.MoveNext())
throw new InvalidOperationException("Enumerator is empty, unable to get frame");
StreamFormat = framesEnumerator.Current.Format;
Width = framesEnumerator.Current.Width;
Height = framesEnumerator.Current.Height;
}
StreamFormat = framesEnumerator.Current.Format;
Width = framesEnumerator.Current.Width;
Height = framesEnumerator.Current.Height;
return $"-f rawvideo -r {FrameRate} -pix_fmt {StreamFormat} -s {Width}x{Height}";
}