Fix vpp tonemap pixfmt regression (#12733)

pull/12742/head
Nyanmisaka 4 months ago committed by GitHub
parent e5f5f7c384
commit f52f5290b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4422,9 +4422,7 @@ namespace MediaBrowser.Controller.MediaEncoding
mainFilters.Add($"transpose_vaapi=dir={tranposeDir}");
}
var outFormat = doOclTonemap ? ((isQsvDecoder && doVppTranspose) ? "p010" : string.Empty) : "nv12";
outFormat = (doTonemap && isRext) ? "p010" : outFormat;
var outFormat = doTonemap ? (((isQsvDecoder && doVppTranspose) || isRext) ? "p010" : string.Empty) : "nv12";
var swapOutputWandH = isQsvDecoder && doVppTranspose && swapWAndH;
var hwScalePrefix = (isQsvDecoder && (doVppTranspose || doVppFullRangeOut)) ? "vpp" : "scale";
var hwScaleFilter = GetHwScaleFilter(hwScalePrefix, hwFilterSuffix, outFormat, swapOutputWandH, swpInW, swpInH, reqW, reqH, reqMaxW, reqMaxH);

Loading…
Cancel
Save