Sfoglia il codice sorgente

Merge pull request #13151 from nyanmisaka/sw-tonemap-by-default

Always do tone-mapping for HDR transcoding when software pipeline is used
Bond-009 5 mesi fa
parent
commit
b31f1696f2

+ 0 - 1
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -309,7 +309,6 @@ namespace MediaBrowser.Controller.MediaEncoding
         private bool IsSwTonemapAvailable(EncodingJobInfo state, EncodingOptions options)
         private bool IsSwTonemapAvailable(EncodingJobInfo state, EncodingOptions options)
         {
         {
             if (state.VideoStream is null
             if (state.VideoStream is null
-                || !options.EnableTonemapping
                 || GetVideoColorBitDepth(state) < 10
                 || GetVideoColorBitDepth(state) < 10
                 || !_mediaEncoder.SupportsFilter("tonemapx"))
                 || !_mediaEncoder.SupportsFilter("tonemapx"))
             {
             {