[FFmpeg-devel] [PATCH] avfilter/vf_cropdetect: fix type for old_limit

Jeffrey Chapuis ashyni1987 at gmail.com
Fri Jan 27 15:29:24 EET 2023


old_limit is of type float like limit, sorry about that.

Signed-off-by: Ashyni <jeffrey.c at 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;
-- 
2.34.1



More information about the ffmpeg-devel mailing list