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
535 if (changed_csp) {535 if (changed_csp) {
536 av_frame_remove_side_data(out, AV_FRAME_DATA_MASTERING_DISPLAY_METADATA);536 av_frame_remove_side_data(out, AV_FRAME_DATA_MASTERING_DISPLAY_METADATA);
537 av_frame_remove_side_data(out, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL);537 av_frame_remove_side_data(out, AV_FRAME_DATA_CONTENT_LIGHT_LEVEL);
538 av_frame_remove_side_data(out, AV_FRAME_DATA_ICC_PROFILE);
538 }539 }
539 if (s->apply_dovi || changed_csp) {540 if (s->apply_dovi || changed_csp) {
540 av_frame_remove_side_data(out, AV_FRAME_DATA_DOVI_RPU_BUFFER);541 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