mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-25 06:27:15 -04:00
Merge pull request #2368 from nyanmisaka/master
Fix framerate info not showing when mediasource is in H264 format.
This commit is contained in:
commit
c1ecd886d9
1 changed files with 9 additions and 0 deletions
|
@ -90,6 +90,15 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
framerate = val;
|
framerate = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (part.StartsWith("fps=", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
var rate = part.Split(new[] { '=' }, 2)[^1];
|
||||||
|
|
||||||
|
if (float.TryParse(rate, NumberStyles.Any, _usCulture, out var val))
|
||||||
|
{
|
||||||
|
framerate = val;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (state.RunTimeTicks.HasValue &&
|
else if (state.RunTimeTicks.HasValue &&
|
||||||
part.StartsWith("time=", StringComparison.OrdinalIgnoreCase))
|
part.StartsWith("time=", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue