[FFmpeg-devel] [PATCH] lavfi/normalize: remove the unused pointer

Zhong Li zhong.li at intel.com
Sun Sep 29 11:05:51 EEST 2019


Signed-off-by: Zhong Li <zhong.li at intel.com>
---
 libavfilter/vf_normalize.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavfilter/vf_normalize.c b/libavfilter/vf_normalize.c
index 48eea59..d5cb536 100644
--- a/libavfilter/vf_normalize.c
+++ b/libavfilter/vf_normalize.c
@@ -143,14 +143,12 @@ static void normalize(NormalizeContext *s, AVFrame *in, AVFrame *out)
         min[c].in = max[c].in = in->data[0][s->co[c]];
     for (y = 0; y < in->height; y++) {
         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 (c = 0; c < 3; c++) {
                 min[c].in = FFMIN(min[c].in, inp[s->co[c]]);
                 max[c].in = FFMAX(max[c].in, inp[s->co[c]]);
             }
             inp += s->step;
-            outp += s->step;
         }
     }
 
-- 
2.7.4



More information about the ffmpeg-devel mailing list