aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api
diff options
context:
space:
mode:
authorgnattu <gnattu@users.noreply.github.com>2024-09-08 01:16:23 +0800
committerGitHub <noreply@github.com>2024-09-07 11:16:23 -0600
commit5a8a19e07b0de471d4c0762d1692a29b06d5bfd6 (patch)
tree52b2245e834435ff47a772231b3547200d9d11bc /Jellyfin.Api
parent57452d65ef507f3087fd8f3f5530e64c533c5146 (diff)
Add MediaStream.ReferenceFrameRate for problematic video files (#12603)
Co-authored-by: Nyanmisaka <nst799610810@gmail.com>
Diffstat (limited to 'Jellyfin.Api')
-rw-r--r--Jellyfin.Api/Helpers/DynamicHlsHelper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs
index ba92d811c..a58da17d5 100644
--- a/Jellyfin.Api/Helpers/DynamicHlsHelper.cs
+++ b/Jellyfin.Api/Helpers/DynamicHlsHelper.cs
@@ -738,7 +738,7 @@ public class DynamicHlsHelper
{
var width = state.VideoStream.Width ?? 0;
var height = state.VideoStream.Height ?? 0;
- var framerate = state.VideoStream.AverageFrameRate ?? 30;
+ var framerate = state.VideoStream.ReferenceFrameRate ?? 30;
var bitDepth = state.VideoStream.BitDepth ?? 8;
return HlsCodecStringHelpers.GetVp9String(
width,