Skip to content

Commit

Permalink
Merge pull request #527 from alahane-techtel/main
Browse files Browse the repository at this point in the history
>24hr Duration handling added in FFMpegArgumentProcessor
  • Loading branch information
rosenbjerg authored Dec 4, 2024
2 parents 4eb515d + a41ec3a commit a4b9a88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions FFMpegCore/FFMpeg/FFMpegArgumentProcessor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.Globalization;
using System.Text.RegularExpressions;
using FFMpegCore.Enums;
using FFMpegCore.Exceptions;
Expand Down Expand Up @@ -263,7 +262,7 @@ private void ErrorData(object sender, string msg)
return;
}

var processed = TimeSpan.Parse(match.Groups[1].Value, CultureInfo.InvariantCulture);
var processed = MediaAnalysisUtils.ParseDuration(match.Groups[1].Value);
_onTimeProgress?.Invoke(processed);

if (_onPercentageProgress == null || _totalTimespan == null)
Expand Down

0 comments on commit a4b9a88

Please sign in to comment.