* [FFmpeg-devel] [PATCH] avfilter/vf_cropdetect: fix type for old_limit
@ 2023-01-27 13:29 Jeffrey Chapuis
2023-01-27 13:35 ` Jeffrey Chapuis
0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey Chapuis @ 2023-01-27 13:29 UTC (permalink / raw)
To: ffmpeg-devel
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(-)
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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avfilter/vf_cropdetect: fix type for old_limit
2023-01-27 13:29 [FFmpeg-devel] [PATCH] avfilter/vf_cropdetect: fix type for old_limit Jeffrey Chapuis
@ 2023-01-27 13:35 ` Jeffrey Chapuis
2023-01-27 17:20 ` Paul B Mahol
0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey Chapuis @ 2023-01-27 13:35 UTC (permalink / raw)
To: ffmpeg-devel
[-- Attachment #1: Type: text/plain, Size: 15 bytes --]
patch attached.
[-- Attachment #2: 0001-avfilter-vf_cropdetect-fix-type-for-old_limit.patch --]
[-- Type: text/plain, Size: 853 bytes --]
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;
--
2.34.1
[-- Attachment #3: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-27 17:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 13:29 [FFmpeg-devel] [PATCH] avfilter/vf_cropdetect: fix type for old_limit Jeffrey Chapuis
2023-01-27 13:35 ` Jeffrey Chapuis
2023-01-27 17:20 ` Paul B Mahol
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git