Updated RawVideoPipeSource.cs

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

View file

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