vf_lut: fix rgba map regression
Fixes Ticket1184 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -245,9 +245,11 @@ static int config_props(AVFilterLink *inlink)
|
|||||||
for (comp = 0; comp < desc->nb_components; comp++) {
|
for (comp = 0; comp < desc->nb_components; comp++) {
|
||||||
double res;
|
double res;
|
||||||
int tcomp;
|
int tcomp;
|
||||||
|
if (lut->is_rgb) {
|
||||||
for (tcomp = 0; lut->rgba_map[tcomp] != comp; tcomp++)
|
for (tcomp = 0; lut->rgba_map[tcomp] != comp; tcomp++)
|
||||||
;
|
;
|
||||||
|
} else
|
||||||
|
tcomp = comp;
|
||||||
/* create the parsed expression */
|
/* create the parsed expression */
|
||||||
ret = av_expr_parse(&lut->comp_expr[comp], lut->comp_expr_str[comp],
|
ret = av_expr_parse(&lut->comp_expr[comp], lut->comp_expr_str[comp],
|
||||||
var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
|
var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx);
|
||||||
|
Reference in New Issue
Block a user