Commit 45741dd8 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_lut: fix simplification / off by 1 error

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1de7dcb4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment