mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Updated RawVideoPipeSource.cs
This commit is contained in:
parent
6f8c7915f8
commit
9a4d200483
1 changed files with 4 additions and 4 deletions
|
@ -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}";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue