cmxl / FFmpeg.NET

.NET wrapper for common ffmpeg tasks
MIT License
611 stars 99 forks source link

Fixed parsing error in metaData.Duration #23

Closed martinyyyy closed 5 years ago

martinyyyy commented 5 years ago

ffmpeg doesn't respect the culture of the client. Therefor parsing the duration of for example 00:05.31 on a german machine resulted in 531 seconds instead of 5 seconds and 310 ms. Fixed it by using InvariantCulture where the decimal point is always a point and not a comma.

cmxl commented 5 years ago

thank you! i will look into all issues this week and merge all viable pullrequests :smiley: