diff options
| author | gnattu <gnattuoc@me.com> | 2024-02-29 05:37:31 +0800 |
|---|---|---|
| committer | gnattu <gnattuoc@me.com> | 2024-02-29 05:37:31 +0800 |
| commit | ec896a901c269ad4cebc2705f64339bbf0c19bf7 (patch) | |
| tree | 77e12f80357cfa82cdef08172ee26e4e3b78b69b /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | 1cb7264f0d568ef7c093265e760d5418db291194 (diff) | |
fix: code style
Signed-off-by: gnattu <gnattuoc@me.com>
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index 20a465ba9..202cfd5b7 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -5026,6 +5026,7 @@ namespace MediaBrowser.Controller.MediaEncoding { mainFilters.Add(GetOverwriteColorPropertiesParam(state, true)); } + // With OpenCL tone mapping, we are using native hwmap and there's no need to specify a format for the main stream. // However, for other cases, we have to specify the format for the main stream when we are doing subtitle burn-in. // This is because the default upload option is not always processable with VideoToolbox. @@ -5039,7 +5040,8 @@ namespace MediaBrowser.Controller.MediaEncoding if (is8Bit) { mainFilters.Add("format=nv12"); - } else if (is10Bit) + } + else if (is10Bit) { mainFilters.Add("format=p010"); } |
