mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add error handling when parsing bitrate
This commit is contained in:
parent
c750e84e80
commit
91ccbd95fc
@ -49,7 +49,11 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
|
|
||||||
if (!string.IsNullOrEmpty(data.format.bit_rate))
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user