mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
fix: convert all non-yuv420 inputs to nv12
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
e6dee627e3
commit
0909ee7208
1 changed files with 1 additions and 1 deletions
|
|
@ -5019,7 +5019,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
var doOclTonemap = !doVtTonemap && IsHwTonemapAvailable(state, options);
|
||||
|
||||
var scaleFormat = string.Empty;
|
||||
if (GetVideoColorBitDepth(state) == 10)
|
||||
if (!string.Equals(state.VideoStream.PixelFormat, "yuv420p", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
// Use P010 for OpenCL tone mapping, otherwise force an 8bit output.
|
||||
scaleFormat = doOclTonemap ? "p010le" : "nv12";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue