summaryrefslogtreecommitdiff
path: root/libavfilter/vf_libplacebo.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-04-22 21:36:18 +0200
committerNiklas Haas <git@haasn.dev>2023-04-26 15:36:10 +0200
commite3143703e9782b3622ed747a9c552a41b1fcaede (patch)
treec85426c951b82543de83f3ee40e28a61afba9607 /libavfilter/vf_libplacebo.c
parent54126920fcbf4dd2021fedac143f83e9dc419a5f (diff)
downloadffmpeg-e3143703e9782b3622ed747a9c552a41b1fcaede.tar.gz
avfilter/vf_libplacebo: strip ICC profiles on CSP change
Not doing so is an obvious oversight - the ICC profile is tied to the original colorspace, so if we change it, we should definitely strip this information. We should probably also have an extra option to control whether the ICC profile should be stripped, ignored, or applied, but for now this fixes an existing bug.
Diffstat (limited to 'libavfilter/vf_libplacebo.c')
-rw-r--r--libavfilter/vf_libplacebo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index ba852de08d..66929223dd 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -535,6 +535,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
if (changed_csp) {
av_frame_remove_side_data(out, AV_FRAME_DATA_MASTERING_DISPLAY_METADATA);
av_frame_remove_side_data(out, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL);
+ av_frame_remove_side_data(out, AV_FRAME_DATA_ICC_PROFILE);
}
if (s->apply_dovi || changed_csp) {
av_frame_remove_side_data(out, AV_FRAME_DATA_DOVI_RPU_BUFFER);