mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Minor fixes
This commit is contained in:
parent
26fcfcc206
commit
06da927c7e
1 changed files with 3 additions and 6 deletions
|
@ -116,12 +116,9 @@ private static (FFMpegArguments, Action<FFMpegArgumentOptions> outputOptions) Bu
|
|||
{
|
||||
captureTime ??= TimeSpan.FromSeconds(source.Duration.TotalSeconds / 3);
|
||||
size = PrepareSnapshotSize(source, size);
|
||||
if (streamIndex == null)
|
||||
{
|
||||
streamIndex = source.PrimaryVideoStream?.Index
|
||||
?? source.VideoStreams.First()?.Index
|
||||
?? 0;
|
||||
}
|
||||
streamIndex ??= source.PrimaryVideoStream?.Index
|
||||
?? source.VideoStreams.FirstOrDefault()?.Index
|
||||
?? 0;
|
||||
|
||||
return (FFMpegArguments
|
||||
.FromFileInput(input, false, options => options
|
||||
|
|
Loading…
Reference in a new issue