Improve color range passthru.
This commit is contained in:
3 files changed
+14
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user