fix: workaround for Metal AV1 darker image

This commit is contained in:
Acaki
2025-12-01 16:38:47 +08:00
parent cbf42b1e52
commit 5bbdb76d21
+2 -1
View File
@@ -629,7 +629,8 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit);
}
Log(LOG_I, @"AV1 video range: %@", seqHeader->color_config.color_range == 1 ? @"full" : @"limited");
SET_EXTENSION(kCMFormatDescriptionExtension_FullRangeVideo, @(seqHeader->color_config.color_range == 1));
// Force full range AV1 video for now, as sunshine incorrect reports limited range
SET_EXTENSION(kCMFormatDescriptionExtension_FullRangeVideo, @YES);
// Progressive content
SET_EXTENSION(kCMFormatDescriptionExtension_FieldCount, @(1));