Commit 8df91de9 authored by Zhong Li's avatar Zhong Li

lavfi/normalize: remove the unused pointer

Signed-off-by: 's avatarZhong Li <zhong.li@intel.com>
parent 6f0dd6b4
...@@ -147,14 +147,12 @@ static void normalize(NormalizeContext *s, AVFrame *in, AVFrame *out) ...@@ -147,14 +147,12 @@ static void normalize(NormalizeContext *s, AVFrame *in, AVFrame *out)
min[c].in = max[c].in = in->data[0][s->co[c]]; min[c].in = max[c].in = in->data[0][s->co[c]];
for (y = 0; y < in->height; y++) { for (y = 0; y < in->height; y++) {
uint8_t *inp = in->data[0] + y * in->linesize[0]; uint8_t *inp = in->data[0] + y * in->linesize[0];
uint8_t *outp = out->data[0] + y * out->linesize[0];
for (x = 0; x < in->width; x++) { for (x = 0; x < in->width; x++) {
for (c = 0; c < 3; c++) { for (c = 0; c < 3; c++) {
min[c].in = FFMIN(min[c].in, inp[s->co[c]]); min[c].in = FFMIN(min[c].in, inp[s->co[c]]);
max[c].in = FFMAX(max[c].in, inp[s->co[c]]); max[c].in = FFMAX(max[c].in, inp[s->co[c]]);
} }
inp += s->step; inp += s->step;
outp += s->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