Merge pull request #7483 from jellyfin/swdec-cu-tonemap

pull/7492/head
Joshua M. Boniface 3 years ago committed by GitHub
commit 570660099b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2893,8 +2893,8 @@ namespace MediaBrowser.Controller.MediaEncoding
} }
var memoryOutput = false; var memoryOutput = false;
var isUploadForOclTonemap = isSwDecoder && doCuTonemap; var isUploadForCuTonemap = isSwDecoder && doCuTonemap;
if ((isNvDecoder && isSwEncoder) || isUploadForOclTonemap) if ((isNvDecoder && isSwEncoder) || (isUploadForCuTonemap && hasSubs))
{ {
memoryOutput = true; memoryOutput = true;
@ -2904,7 +2904,7 @@ namespace MediaBrowser.Controller.MediaEncoding
} }
// OUTPUT yuv420p surface(memory) // OUTPUT yuv420p surface(memory)
if (isSwDecoder && isNvencEncoder) if (isSwDecoder && isNvencEncoder && !isUploadForCuTonemap)
{ {
memoryOutput = true; memoryOutput = true;
} }

Loading…
Cancel
Save