From 818e568b89a3410c840b237ac8ed4ae18799f862 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 29 Nov 2024 12:31:53 +0100 Subject: [PATCH] Write color tag for Dolby Vision --- MP42/MP42VideoTrack.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MP42/MP42VideoTrack.m b/MP42/MP42VideoTrack.m index 3c01043..19f0482 100644 --- a/MP42/MP42VideoTrack.m +++ b/MP42/MP42VideoTrack.m @@ -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) {