mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-31 02:26:43 +00:00
Wrap image size check in using block #304
This commit is contained in:
parent
4e977c6647
commit
05839825e0
1 changed files with 4 additions and 1 deletions
|
@ -247,7 +247,10 @@ public static bool Convert(
|
|||
public static bool PosterWithAudio(string image, string audio, string output)
|
||||
{
|
||||
FFMpegHelper.ExtensionExceptionCheck(output, FileExtension.Mp4);
|
||||
FFMpegHelper.ConversionSizeExceptionCheck(Image.FromFile(image));
|
||||
using (var imageFile = Image.FromFile(image))
|
||||
{
|
||||
FFMpegHelper.ConversionSizeExceptionCheck(imageFile);
|
||||
}
|
||||
|
||||
return FFMpegArguments
|
||||
.FromFileInput(image, false, options => options
|
||||
|
|
Loading…
Reference in a new issue