diff options
| author | gnattu <gnattuoc@me.com> | 2024-02-16 01:43:40 +0800 |
|---|---|---|
| committer | gnattu <gnattuoc@me.com> | 2024-02-16 01:43:40 +0800 |
| commit | 21bf557145204f87cca26116857d25ff6c742209 (patch) | |
| tree | 82bf3dcd85dbce4f90561011af85d0f93b24078a /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | 0a8560f64acc37286eead442a1c11b74796bd4bf (diff) | |
fix: use hardware videotoolbox filter even only scale is available
Signed-off-by: gnattu <gnattuoc@me.com>
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index b5e45317b..f5873c7ca 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -4999,7 +4999,7 @@ namespace MediaBrowser.Controller.MediaEncoding // VideoToolbox is special. It does not use a separate tone mapping filter like others. Instead, it performs both tone mapping and scaling in a single filter. var useHwToneMapping = IsVideoToolboxTonemapAvailable(state, options) && supportsHwScale; // fallback to software filters if we are using filters not supported by hardware yet. - var useHardwareFilters = noOverlay && (!doDeintH2645 || supportsHwDeint); + var useHardwareFilters = noOverlay && (!doDeintH2645 || supportsHwDeint || supportsHwScale); if (!useHardwareFilters) { |
