mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-02-18 11:02:31 +00:00
FFProbe: add format provider to correctly parse the video's duration
#31
Former-commit-id: d599592084
This commit is contained in:
parent
a5aad904e7
commit
ce16d9103c
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ namespace FFMpegCore.FFMPEG
|
|||
double videoSize = 0d;
|
||||
double audioSize = 0d;
|
||||
|
||||
var duration = TimeSpan.FromSeconds(double.TryParse((video ?? audio).Duration, out var output) ? output : 0);
|
||||
var duration = TimeSpan.FromSeconds(double.TryParse((video ?? audio).Duration, NumberStyles.Any, CultureInfo.InvariantCulture, out var output) ? output : 0);
|
||||
info.Duration = duration.Subtract(TimeSpan.FromMilliseconds(duration.Milliseconds));
|
||||
|
||||
if (video != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue