Improve color range passthru.

This commit is contained in:
Damiano Galassi committed 2021-05-22 10:22:48 +02:00
1 parent 0cf26cf3df
commit 3e2a9f4cc7
3 files changed
+14 -1

No files matched your search

+5
View File
@@ -253,6 +253,11 @@ MP42_OBJC_DIRECT_MEMBERS
videoTrack.matrixCoefficients = 9;
}
}
CFBooleanRef colorRange = CMFormatDescriptionGetExtension(formatDescription, kCMFormatDescriptionExtension_FullRangeVideo);
if (colorRange) {
videoTrack.colorRange = CFBooleanGetValue(colorRange);
}
}
newTrack = videoTrack;