mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
parent
c1393697a3
commit
985fc0cbc4
1 changed files with 2 additions and 2 deletions
|
@ -390,7 +390,7 @@ public VideoInfo Convert(ArgumentContainer arguments, bool skipExistsCheck = fal
|
|||
throw new FFMpegException(FFMpegExceptionType.Conversion, "Could not process file without error");
|
||||
|
||||
_totalTime = TimeSpan.MinValue;
|
||||
return new VideoInfo(output);
|
||||
return output.Exists ? new VideoInfo(output) : null;
|
||||
}
|
||||
public async Task<VideoInfo> ConvertAsync(ArgumentContainer arguments, bool skipExistsCheck = false)
|
||||
{
|
||||
|
@ -401,7 +401,7 @@ public async Task<VideoInfo> ConvertAsync(ArgumentContainer arguments, bool skip
|
|||
throw new FFMpegException(FFMpegExceptionType.Conversion, "Could not process file without error");
|
||||
|
||||
_totalTime = TimeSpan.MinValue;
|
||||
return new VideoInfo(output);
|
||||
return output.Exists ? new VideoInfo(output) : null;
|
||||
}
|
||||
|
||||
private static (VideoInfo[] Input, FileInfo Output) GetInputOutput(ArgumentContainer arguments)
|
||||
|
|
Loading…
Reference in a new issue