use int tryparse

This commit is contained in:
Luke Pulverenti 2015-11-10 23:11:14 -05:00
parent 98020809c8
commit b5f0cc5ad7

View File

@ -49,7 +49,11 @@ namespace MediaBrowser.MediaEncoding.Probing
if (!string.IsNullOrEmpty(data.format.bit_rate))
{
info.Bitrate = int.Parse(data.format.bit_rate, _usCulture);
int value;
if (int.TryParse(data.format.bit_rate, NumberStyles.Any, _usCulture, out value))
{
info.Bitrate = value;
}
}
}