History

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.

Niklas Haas committed 3 years ago

Commit e3143701 parent 54126921 file · +1 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_libplacebo.c+1−0
@@ -535,6 +535,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) · 534 unmodified lines
535535 if (changed_csp) {
536536 av_frame_remove_side_data(out, AV_FRAME_DATA_MASTERING_DISPLAY_METADATA);
537537 av_frame_remove_side_data(out, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL);
538+ av_frame_remove_side_data(out, AV_FRAME_DATA_ICC_PROFILE);
538539 }
539540 if (s->apply_dovi || changed_csp) {
540541 av_frame_remove_side_data(out, AV_FRAME_DATA_DOVI_RPU_BUFFER);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t