Skip to content

Commit

Permalink
Merge pull request #444 from nyanmisaka/strip-hdr-meta
Browse files Browse the repository at this point in the history
Strip the HDR metadata from tonemapx output
  • Loading branch information
gnattu authored Aug 27, 2024
2 parents a893486 + 8083c72 commit efe5f43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions debian/patches/0060-add-simd-optimized-tonemapx-filter.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ Index: FFmpeg/libavfilter/vf_tonemapx.c
===================================================================
--- /dev/null
+++ FFmpeg/libavfilter/vf_tonemapx.c
@@ -0,0 +1,1260 @@
@@ -0,0 +1,1261 @@
+/*
+ * This file is part of FFmpeg.
+ *
Expand Down Expand Up @@ -2488,7 +2488,8 @@ Index: FFmpeg/libavfilter/vf_tonemapx.c
+
+ av_frame_free(&in);
+
+ ff_update_hdr_metadata(out, peak);
+ av_frame_remove_side_data(out, AV_FRAME_DATA_MASTERING_DISPLAY_METADATA);
+ av_frame_remove_side_data(out, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL);
+
+ return ff_filter_frame(outlink, out);
+fail:
Expand Down

0 comments on commit efe5f43

Please sign in to comment.