[FFmpeg-cvslog] vf_lut: fix simplification / off by 1 error
    Michael Niedermayer 
    git at videolan.org
       
    Wed Apr 17 21:32:50 CEST 2013
    
    
  
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 17 21:18:24 2013 +0200| [45741dd81f41c50469661142dbf401c46bd2047f] | committer: Michael Niedermayer
vf_lut: fix simplification / off by 1 error
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=45741dd81f41c50469661142dbf401c46bd2047f
---
 libavfilter/vf_lut.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c
index 5cc9026..4c0cdfc 100644
--- a/libavfilter/vf_lut.c
+++ b/libavfilter/vf_lut.c
@@ -286,9 +286,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
             outrow = outrow0;
             for (j = 0; j < w; j++) {
                 switch (lut->step) {
-                case 3:  outrow[3] = tab[3][inrow[3]]; // Fall-through
-                case 2:  outrow[2] = tab[2][inrow[2]]; // Fall-through
-                case 1:  outrow[1] = tab[1][inrow[1]]; // Fall-through
+                case 4:  outrow[3] = tab[3][inrow[3]]; // Fall-through
+                case 3:  outrow[2] = tab[2][inrow[2]]; // Fall-through
+                case 2:  outrow[1] = tab[1][inrow[1]]; // Fall-through
                 default: outrow[0] = tab[0][inrow[0]];
                 }
                 outrow += lut->step;
    
    
More information about the ffmpeg-cvslog
mailing list