summaryrefslogtreecommitdiff
path: root/libavfilter/vf_tonemap.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2018-07-25 17:45:46 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2018-08-06 18:35:52 +0200
commitaa8e5eecac97dd3c87518e0accfb96dea05066c8 (patch)
tree7460185df9aad4bc18b1ab2ab5519c275e7d7e70 /libavfilter/vf_tonemap.c
parent572ef567a5288d36b8bc2531309710a0e891d35c (diff)
downloadffmpeg-aa8e5eecac97dd3c87518e0accfb96dea05066c8.tar.gz
vf_tonemap: Update hdr metadata with the new peak value
Less effective than the approach in vf_tonemap_opencl because there is no peak detection, but it's still a good idea to implement this.
Diffstat (limited to 'libavfilter/vf_tonemap.c')
-rw-r--r--libavfilter/vf_tonemap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_tonemap.c b/libavfilter/vf_tonemap.c
index b62532946b..98a2c4bd23 100644
--- a/libavfilter/vf_tonemap.c
+++ b/libavfilter/vf_tonemap.c
@@ -265,6 +265,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
av_frame_free(&in);
+ ff_update_hdr_metadata(out, peak);
+
return ff_filter_frame(outlink, out);
}