This should only affect yuv->yuv, and not change behavior
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
... | ... |
@@ -535,6 +535,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in) |
535 | 535 |
inv_table = parse_yuv_type(scale->in_color_matrix, av_frame_get_colorspace(in)); |
536 | 536 |
if (scale->out_color_matrix) |
537 | 537 |
table = parse_yuv_type(scale->out_color_matrix, AVCOL_SPC_UNSPECIFIED); |
538 |
+ else if (scale->in_color_matrix) |
|
539 |
+ table = inv_table; |
|
538 | 540 |
|
539 | 541 |
if (scale-> in_range != AVCOL_RANGE_UNSPECIFIED) |
540 | 542 |
in_full = (scale-> in_range == AVCOL_RANGE_JPEG); |