mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01: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)
|
public static bool PosterWithAudio(string image, string audio, string output)
|
||||||
{
|
{
|
||||||
FFMpegHelper.ExtensionExceptionCheck(output, FileExtension.Mp4);
|
FFMpegHelper.ExtensionExceptionCheck(output, FileExtension.Mp4);
|
||||||
FFMpegHelper.ConversionSizeExceptionCheck(Image.FromFile(image));
|
using (var imageFile = Image.FromFile(image))
|
||||||
|
{
|
||||||
|
FFMpegHelper.ConversionSizeExceptionCheck(imageFile);
|
||||||
|
}
|
||||||
|
|
||||||
return FFMpegArguments
|
return FFMpegArguments
|
||||||
.FromFileInput(image, false, options => options
|
.FromFileInput(image, false, options => options
|
||||||
|
|
Loading…
Reference in a new issue