Write color tag for Dolby Vision

This commit is contained in:
Damiano Galassi committed 2024-11-29 12:31:53 +01:00
1 parent b71f404a09
commit 818e568b89
1 file changed
+3 -3
+3 -3
View File
@@ -306,10 +306,10 @@ static uint32_t convertToFixedPoint(CGFloat value) {
free(val);
if ((self.format == kMP42VideoCodecType_H264 || self.format == kMP42VideoCodecType_MPEG4Video
if ((self.format == kMP42VideoCodecType_H264 || self.format == kMP42VideoCodecType_MPEG4Video
|| self.format == kMP42VideoCodecType_HEVC || self.format == kMP42VideoCodecType_HEVC_PSinBitstream
|| self.format == kMP42VideoCodecType_VVC || self.format == kMP42VideoCodecType_VVC_PSinBitstream
|| self.format == kMP42VideoCodecType_AV1)) {
|| self.format == kMP42VideoCodecType_VVC || self.format == kMP42VideoCodecType_VVC_PSinBitstream
|| self.format == kMP42VideoCodecType_AV1 || self.format == kMP42VideoCodecType_DolbyVisionHEVC)) {
if (self.updatedProperty[@"colr"] || self.muxed == NO) {
if (_colorPrimaries > 0 && _transferCharacteristics > 0 && _matrixCoefficients > 0) {