diff options
| author | JPVenson <github@jpb.email> | 2024-11-19 20:53:38 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-11-19 20:53:38 +0000 |
| commit | 0dd6dacc4f40a9530b359b3e389f0851e57983e0 (patch) | |
| tree | a3fdf7611c2e09ba62bab0f28484a9ba5876a78d /Jellyfin.Server.Implementations/Trickplay | |
| parent | 136a7995f7d9bb3c85b22cffadfd17030300bc2a (diff) | |
| parent | 06c603428bceccdb793eb34cc0340e25552d6c1d (diff) | |
Merge remote-tracking branch 'origin/master' into feature/EFUserData
Diffstat (limited to 'Jellyfin.Server.Implementations/Trickplay')
| -rw-r--r-- | Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs index f6174579f..23ff06ff5 100644 --- a/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs +++ b/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs @@ -238,7 +238,7 @@ public class TrickplayManager : ITrickplayManager foreach (var tile in existingFiles) { var image = _imageEncoder.GetImageSize(tile); - localTrickplayInfo.Height = Math.Max(localTrickplayInfo.Height, image.Height); + localTrickplayInfo.Height = Math.Max(localTrickplayInfo.Height, (int)Math.Ceiling((double)image.Height / localTrickplayInfo.TileHeight)); var bitrate = (int)Math.Ceiling((decimal)new FileInfo(tile).Length * 8 / localTrickplayInfo.TileWidth / localTrickplayInfo.TileHeight / (localTrickplayInfo.Interval / 1000)); localTrickplayInfo.Bandwidth = Math.Max(localTrickplayInfo.Bandwidth, bitrate); } |
