fix: convert all non-yuv420 inputs to nv12

Signed-off-by: gnattu <gnattuoc@me.com>
pull/11014/head
gnattu 10 months ago
parent e6dee627e3
commit 0909ee7208

@ -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…
Cancel
Save