Skip to content

Commit

Permalink
Fix the invalid range option for cuda tonemap
Browse files Browse the repository at this point in the history
Signed-off-by: nyanmisaka <[email protected]>
  • Loading branch information
nyanmisaka committed Sep 4, 2024
1 parent a77cea1 commit 62952ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions debian/patches/0004-add-cuda-tonemap-impl.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2664,11 +2664,11 @@ Index: FFmpeg/libavfilter/vf_tonemap_cuda.c
+ s->out_pri != out->color_primaries ||
+ s->out_range != out->color_range ||
+ s->out_chroma_loc != out->chroma_location) {
+ out->color_trc = s->out_trc;
+ out->colorspace = s->out_spc;
+ out->color_primaries = s->out_pri;
+ out->color_range = s->out_range == -1 ? out->color_range : s->out_range;
+ out->chroma_location = s->out_chroma_loc;
+ if (s->out_trc != -1) out->color_trc = s->out_trc;
+ if (s->out_spc != -1) out->colorspace = s->out_spc;
+ if (s->out_pri != -1) out->color_primaries = s->out_pri;
+ if (s->out_range != -1) out->color_range = s->out_range;
+ if (s->out_chroma_loc != -1) out->chroma_location = s->out_chroma_loc;
+ }
+
+ return 0;
Expand Down

0 comments on commit 62952ce

Please sign in to comment.