From 7dca87a73fc80d5f243054066a0075512a1a4572 Mon Sep 17 00:00:00 2001 From: Vlad Jerca Date: Tue, 26 Feb 2019 23:36:52 +0200 Subject: [PATCH] HotFix: invalid progress --- FFMpegCore/FFMPEG/FFMpeg.cs | 4 ++-- FFMpegCore/FFMpegCore.csproj | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FFMpegCore/FFMPEG/FFMpeg.cs b/FFMpegCore/FFMPEG/FFMpeg.cs index 3f6350a..f6b3111 100644 --- a/FFMpegCore/FFMPEG/FFMpeg.cs +++ b/FFMpegCore/FFMPEG/FFMpeg.cs @@ -203,13 +203,13 @@ public VideoInfo Convert( break; } - _totalTime = TimeSpan.MinValue; - if (!RunProcess(container, output)) { throw new FFMpegException(FFMpegExceptionType.Conversion, $"The video could not be converted to {Enum.GetName(typeof(VideoType), type)}"); } + _totalTime = TimeSpan.MinValue; + return new VideoInfo(output); } diff --git a/FFMpegCore/FFMpegCore.csproj b/FFMpegCore/FFMpegCore.csproj index 29a639c..ac1c985 100644 --- a/FFMpegCore/FFMpegCore.csproj +++ b/FFMpegCore/FFMpegCore.csproj @@ -7,9 +7,9 @@ https://github.com/vladjerca/FFMpegCore Vlad Jerca A great way to use FFMpeg encoding when writing video applications, client-side and server-side. It has wrapper methods that allow conversion to all web formats: MP4, OGV, TS and methods of capturing screens from the videos. - 1.0.1 - 1.0.1.0 - 1.0.1.0 + 1.0.2 + 1.0.2.0 + 1.0.2.0