0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05:00

fix software tone-mapping not being applied

This commit is contained in:
mertalev 2024-05-13 19:59:24 -04:00
parent 1556d978ed
commit a2b7403978
No known key found for this signature in database
GPG key ID: 13C97EF14A338984

View file

@ -476,7 +476,7 @@ export class NVENCConfig extends BaseHWConfig {
getFilterOptions(videoStream: VideoStreamInfo) {
const options = [];
if (!this.config.accelDecode) {
options.push('format=nv12', 'hwupload_cuda');
options.push(...this.getToneMapping(videoStream), 'format=nv12', 'hwupload_cuda');
if (this.shouldScale(videoStream)) {
options.push(`scale_cuda=${this.getScaling(videoStream)}`);
}