mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:16:38 +00:00
fix: stack overflow
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
ec896a901c
commit
a30dc81b28
2 changed files with 4 additions and 1 deletions
|
|
@ -6094,7 +6094,9 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
// Hardware surface only make sense when interop with OpenCL
|
||||
// VideoToolbox's Hardware surface in ffmpeg is not only slower than hwupload, but also breaks HDR in many cases.
|
||||
// For example: https://trac.ffmpeg.org/ticket/10884
|
||||
var useOclToneMapping = !IsVideoToolboxTonemapAvailable(state, options) && IsHwTonemapAvailable(state, options);
|
||||
var useOclToneMapping = !IsVideoToolboxTonemapAvailable(state, options) &&
|
||||
options.EnableTonemapping &&
|
||||
state.VideoStream.VideoRangeType == VideoRangeType.DOVI;
|
||||
var useHwSurface = useOclToneMapping && IsVideoToolBoxFullSupported() && _mediaEncoder.SupportsFilter("alphasrc");
|
||||
|
||||
if (is8bitSwFormatsVt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue