mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Fix Videotoolbox Hi10P hardware decoding
We need to mark h264 as 10bit supported for videotoolbox Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
808cd6f06a
commit
487dbf3e85
@ -6307,6 +6307,12 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
if (is8_10bitSwFormatsVt)
|
if (is8_10bitSwFormatsVt)
|
||||||
{
|
{
|
||||||
|
if (string.Equals("avc", videoStream.Codec, StringComparison.OrdinalIgnoreCase)
|
||||||
|
|| string.Equals("h264", videoStream.Codec, StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
return GetHwaccelType(state, options, "h264", bitDepth, useHwSurface);
|
||||||
|
}
|
||||||
|
|
||||||
if (string.Equals("hevc", videoStream.Codec, StringComparison.OrdinalIgnoreCase)
|
if (string.Equals("hevc", videoStream.Codec, StringComparison.OrdinalIgnoreCase)
|
||||||
|| string.Equals("h265", videoStream.Codec, StringComparison.OrdinalIgnoreCase))
|
|| string.Equals("h265", videoStream.Codec, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user