Unified · Split
| @@ -204,7 +204,6 @@ static int config_input(AVFilterLink *inlink) · 203 unmodified lines | |||
| 204 | CropDetectContext *s = ctx->priv; | 204 | CropDetectContext *s = ctx->priv; |
| 205 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); | 205 | const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format); |
| 206 | const int bufsize = inlink->w * inlink->h; | 206 | const int bufsize = inlink->w * inlink->h; |
| 207 | int bpp; | ||
| 208 | 207 | ||
| 209 | av_image_fill_max_pixsteps(s->max_pixsteps, NULL, desc); | 208 | av_image_fill_max_pixsteps(s->max_pixsteps, NULL, desc); |
| 210 | 209 | ||
| @@ -216,7 +215,6 @@ static int config_input(AVFilterLink *inlink) · 5 unmodified lines | |||
| 216 | s->x2 = 0; | 215 | s->x2 = 0; |
| 217 | s->y2 = 0; | 216 | s->y2 = 0; |
| 218 | 217 | ||
| 219 | bpp = s->max_pixsteps[0]; | ||
| 220 | s->window_size = FFMAX(s->reset_count, 15); | 218 | s->window_size = FFMAX(s->reset_count, 15); |
| 221 | s->tmpbuf = av_malloc(bufsize); | 219 | s->tmpbuf = av_malloc(bufsize); |
| 222 | s->filterbuf = av_malloc(bufsize * s->max_pixsteps[0]); | 220 | s->filterbuf = av_malloc(bufsize * s->max_pixsteps[0]); |