diff --git a/vid2ani.cmd b/vid2ani.cmd index 84b915a..d6b9cf3 100755 --- a/vid2ani.cmd +++ b/vid2ani.cmd @@ -273,10 +273,7 @@ ECHO %GREEN%Encoding animation...%OFF% ffmpeg -v %loglevel% %trim% -i %input% -thread_queue_size 512 -i "%palette%" -lavfi "%filters% [x]; [x][1:v] %decode%%errordiff%%ditherenc%%bayer%" -f %filetype% %webp_lossy% -loop 0 -plays 0 -y "%output%" :: Checking if file was created and cleaning up if not -IF NOT EXIST "%output%" ( - ECHO %RED%Failed to generate animation: %output% not found.%OFF% - GOTO :cleanup -) +IF NOT EXIST "%output%" ECHO %RED%Failed to generate animation: %output% not found.%OFF% && GOTO :cleanup :: Open output file if picswitch is set IF DEFINED picswitch START "" "%output%"