vladjerca/FFMpegSharp

parsing double fails.

Closed this issue · 1 comments

Using double.Parse like you did in this project fails for me (non US OS) because the way its implemented doesnt work on "my culture settings". In the way its implemented the parsing will just delete the separator eg: 123.456 will get 123456 after parsing.
You did things like:
numberData = double.Parse(dict["streams"][vid]["duration"]);
fix goes like this:
numberData = double.Parse(dict["streams"][vid]["duration"], CultureInfo.InvariantCulture);

I will update the implemenation. Sorry for the late response.