Message ID | cfb738b6-c177-5882-849d-6f5bf753d19a@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avfilter/vf_cropdetect: fix type for old_limit | expand |
Context | Check | Description |
---|---|---|
andriy/configure_x86 | warning | Failed to apply patch |
patch attached. From 555e1a9f45c99a3e3d15225c17bd98d52855a03d Mon Sep 17 00:00:00 2001 From: Ashyni <jeffrey.c@tuta.io> Date: Fri, 27 Jan 2023 14:20:50 +0100 Subject: [PATCH] avfilter/vf_cropdetect: fix type for old_limit Signed-off-by: Ashyni <jeffrey.c@tuta.io> --- libavfilter/vf_cropdetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index 724047f864..56457ee90b 100644 --- a/libavfilter/vf_cropdetect.c +++ b/libavfilter/vf_cropdetect.c @@ -448,7 +448,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar { CropDetectContext *s = ctx->priv; int ret; - int old_limit = s->limit; + float old_limit = s->limit; if ((ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags)) < 0) return ret;
On 1/27/23, Jeffrey Chapuis <ashyni1987@gmail.com> wrote:
> patch attached.
applied
diff --git a/libavfilter/vf_cropdetect.c b/libavfilter/vf_cropdetect.c index 724047f864..56457ee90b 100644 --- a/libavfilter/vf_cropdetect.c +++ b/libavfilter/vf_cropdetect.c @@ -448,7 +448,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar { CropDetectContext *s = ctx->priv; int ret; - int old_limit = s->limit; + float old_limit = s->limit; if ((ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags)) < 0) return ret; -- 2.34.1
old_limit is of type float like limit, sorry about that. Signed-off-by: Ashyni <jeffrey.c@tuta.io> --- libavfilter/vf_cropdetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)