mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #7712 from jellyfin/fix-hevc-disable-option
(cherry picked from commit 5a9e5e0d5dc9179dd816f7ec93cc21dc8a02468a) Signed-off-by: crobibero <cody@robibe.ro>
This commit is contained in:
parent
2d8f7b46f1
commit
47d150565d
@ -771,7 +771,14 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
// Prefer matching video codecs
|
// Prefer matching video codecs
|
||||||
var videoCodecs = ContainerProfile.SplitValue(videoCodec);
|
var videoCodecs = ContainerProfile.SplitValue(videoCodec);
|
||||||
var directVideoCodec = ContainerProfile.ContainsContainer(videoCodecs, videoStream?.Codec) ? videoStream?.Codec : null;
|
var directVideoCodec = ContainerProfile.ContainsContainer(videoCodecs, videoStream?.Codec) ? videoStream?.Codec : null;
|
||||||
playlistItem.VideoCodecs = directVideoCodec != null ? new[] { directVideoCodec } : videoCodecs;
|
if (directVideoCodec != null)
|
||||||
|
{
|
||||||
|
// merge directVideoCodec to videoCodecs
|
||||||
|
Array.Resize(ref videoCodecs, videoCodecs.Length + 1);
|
||||||
|
videoCodecs[^1] = directVideoCodec;
|
||||||
|
}
|
||||||
|
|
||||||
|
playlistItem.VideoCodecs = videoCodecs;
|
||||||
|
|
||||||
// Copy video codec options as a starting point, this applies to transcode and direct-stream
|
// Copy video codec options as a starting point, this applies to transcode and direct-stream
|
||||||
playlistItem.MaxFramerate = videoStream?.AverageFrameRate;
|
playlistItem.MaxFramerate = videoStream?.AverageFrameRate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user