summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-30 22:14:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-30 22:14:26 +0200
commitf0dd4ab055b16bcfe2f9ad1f00d109494db135aa (patch)
tree379e6417861284cef72df5bcffb9dd70c7e5eacd
parenta2d7da01e8f9a2ab5815c0a9718dc952f751667d (diff)
avfilter/vf_cropdetect: Remove set-but-unused variable
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_cropdetect.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c
index eec0c7ab68..7e985fb271 100644
--- a/libavfilter/vf_cropdetect.c
+++ b/libavfilter/vf_cropdetect.c
@@ -204,7 +204,6 @@ static int config_input(AVFilterLink *inlink)
CropDetectContext *s = ctx->priv;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
const int bufsize = inlink->w * inlink->h;
- int bpp;
av_image_fill_max_pixsteps(s->max_pixsteps, NULL, desc);
@@ -216,7 +215,6 @@ static int config_input(AVFilterLink *inlink)
s->x2 = 0;
s->y2 = 0;
- bpp = s->max_pixsteps[0];
s->window_size = FFMAX(s->reset_count, 15);
s->tmpbuf = av_malloc(bufsize);
s->filterbuf = av_malloc(bufsize * s->max_pixsteps[0]);