diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-12 00:43:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-12 02:02:30 +0200 |
commit | c0af87550a3970606ea298884be928f0710f86ad (patch) | |
tree | a0f73be4ee67e36235638a8a94cf118e25727367 | |
parent | 277f20c3c877a74aca9d480480024a6d66c9fbc4 (diff) | |
download | ffmpeg-c0af87550a3970606ea298884be928f0710f86ad.tar.gz |
vf_lut: fix rgba map regression
Fixes Ticket1184
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_lut.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index b3816c6962..7d8e4b0b5e 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -245,9 +245,11 @@ static int config_props(AVFilterLink *inlink) for (comp = 0; comp < desc->nb_components; comp++) { double res; int tcomp; - for (tcomp = 0; lut->rgba_map[tcomp] != comp; tcomp++) - ; - + if (lut->is_rgb) { + for (tcomp = 0; lut->rgba_map[tcomp] != comp; tcomp++) + ; + } else + tcomp = comp; /* create the parsed expression */ ret = av_expr_parse(&lut->comp_expr[comp], lut->comp_expr_str[comp], var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx); |