From 8083c72e14bef74440f7d67cab7551e056975ff4 Mon Sep 17 00:00:00 2001 From: nyanmisaka Date: Wed, 28 Aug 2024 00:20:36 +0800 Subject: [PATCH] Strip the HDR metadata from tonemapx output Signed-off-by: nyanmisaka --- debian/patches/0060-add-simd-optimized-tonemapx-filter.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/patches/0060-add-simd-optimized-tonemapx-filter.patch b/debian/patches/0060-add-simd-optimized-tonemapx-filter.patch index a0d97496..5df4dfe9 100644 --- a/debian/patches/0060-add-simd-optimized-tonemapx-filter.patch +++ b/debian/patches/0060-add-simd-optimized-tonemapx-filter.patch @@ -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. + * @@ -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: