[FFmpeg-cvslog] vf_lut: fix rgba map regression

Michael Niedermayer git at videolan.org
Thu Apr 12 02:07:05 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 12 00:43:53 2012 +0200| [c0af87550a3970606ea298884be928f0710f86ad] | committer: Michael Niedermayer

vf_lut: fix rgba map regression

Fixes Ticket1184

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c0af87550a3970606ea298884be928f0710f86ad
---

 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 b3816c6..7d8e4b0 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);



More information about the ffmpeg-cvslog mailing list