Merge pull request #458 from clifford64/patch-1

Update HDR Flow
This commit is contained in:
HaveAGitGat 2023-09-06 21:02:21 +01:00 committed by GitHub
commit dbabee14df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ var plugin = function (args) {
for (var i = 0; i < args.inputFileObj.ffProbeData.streams.length; i += 1) {
var stream = args.inputFileObj.ffProbeData.streams[i];
if (stream.codec_type === 'video'
&& stream.transfer_characteristics === 'smpte2084'
&& stream.color_transfer === 'smpte2084'
&& stream.color_primaries === 'bt2020'
&& stream.color_range === 'tv') {
isHdr = true;

View file

@ -43,7 +43,7 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
const stream = args.inputFileObj.ffProbeData.streams[i];
if (
stream.codec_type === 'video'
&& stream.transfer_characteristics === 'smpte2084'
&& stream.color_transfer === 'smpte2084'
&& stream.color_primaries === 'bt2020'
&& stream.color_range === 'tv'
) {