Skip to content

Commit

Permalink
avfilter/tonemapx: require 10bit output for hdr
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu committed Dec 20, 2024
1 parent 9ccb771 commit 71adc79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion debian/patches/0060-add-simd-optimized-tonemapx-filter.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2635,7 +2635,7 @@ Index: FFmpeg/libavfilter/vf_tonemapx.c
===================================================================
--- /dev/null
+++ FFmpeg/libavfilter/vf_tonemapx.c
@@ -0,0 +1,1881 @@
@@ -0,0 +1,1886 @@
+/*
+ * This file is part of FFmpeg.
+ *
Expand Down Expand Up @@ -4081,6 +4081,11 @@ Index: FFmpeg/libavfilter/vf_tonemapx.c
+ return AVERROR_BUG;
+ }
+
+ if (s->trc == AVCOL_TRC_SMPTE2084 && odesc->comp[0].depth == 8) {
+ av_log(s, AV_LOG_ERROR, "HDR passthrough requires 10 bit output format depth\n");
+ av_assert0(0);
+ }
+
+ switch (odesc->comp[2].plane) {
+ case 1: // biplanar
+ if (odesc->comp[0].depth == 8) {
Expand Down

0 comments on commit 71adc79

Please sign in to comment.