Skip to content

Commit

Permalink
colorspace: include nominal min/max in pl_color_space_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 authored and haasn committed Feb 19, 2023
1 parent 8a2f385 commit 3c32b8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/colorspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ void pl_color_space_merge(struct pl_color_space *orig,
orig->primaries = new->primaries;
if (!orig->transfer)
orig->transfer = new->transfer;
if (!orig->nominal_min)
orig->nominal_min = new->nominal_min;
if (!orig->nominal_max)
orig->nominal_max = new->nominal_max;
pl_hdr_metadata_merge(&orig->hdr, &new->hdr);
}

Expand Down

0 comments on commit 3c32b8c

Please sign in to comment.