diff options
author | Niklas Haas <[email protected]> | 2024-04-26 13:19:26 +0200 |
---|---|---|
committer | Niklas Haas <[email protected]> | 2024-12-23 14:23:13 +0100 |
commit | d23f443dfcad65c7abff728f7835d5fb78654393 (patch) | |
tree | 2a382940e3ff03cfffadea8078e2f95d3d84a2dd /libavfilter/vf_lut.c | |
parent | eecdc25d4b7c6be368be38279880ed38fc3e1bd2 (diff) |
avfilter/vf_lut*: strip color volume metadata
These filters, in general, will apply some arbitrary color volume
transformation. Strip corresponding metadata to be conservative/safe.
Diffstat (limited to 'libavfilter/vf_lut.c')
-rw-r--r-- | libavfilter/vf_lut.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index af7172dc01..c227ebc45c 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -539,6 +539,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) av_frame_copy_props(out, in); } + av_frame_side_data_remove_by_props(&out->side_data, &out->nb_side_data, + AV_SIDE_DATA_PROP_COLOR_DEPENDENT); + if (s->is_rgb && s->is_16bit && !s->is_planar) { /* packed, 16-bit */ PACKED_THREAD_DATA |