From: Jack Lau via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Jack Lau <code@ffmpeg.org>
Subject: [FFmpeg-devel] [PATCH] Revert " avfilter/avfilter: always forward request frame in filter_activate_default" (PR #20944)
Date: Mon, 17 Nov 2025 16:06:18 -0000
Message-ID: <176339557853.25.7196239267873298644@2cb04c0e5124> (raw)
PR #20944 opened by Jack Lau (JackLau)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20944
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20944.patch
Fix #20940
This reverts commit 4440e499ba
It breaks some filters like feedback, and make
li->frame_blocked_in check invaild.
Signed-off-by: Jack Lau <jacklau1222gm@gmail.com>
>From 9862f4a16c5f36f263a8677fb17b2d68766a969a Mon Sep 17 00:00:00 2001
From: Jack Lau <jacklau1222gm@gmail.com>
Date: Mon, 17 Nov 2025 23:55:53 +0800
Subject: [PATCH] Revert " avfilter/avfilter: always forward request frame in
filter_activate_default"
Fix #20940
This reverts commit 4440e499ba
It breaks some filters like feedback, and make
li->frame_blocked_in check invaild.
Signed-off-by: Jack Lau <jacklau1222gm@gmail.com>
---
libavfilter/avfilter.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 169c2baa42..cea2c442f2 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -1290,11 +1290,6 @@ static int filter_activate_default(AVFilterContext *filter)
return request_frame_to_filter(filter->outputs[i]);
}
}
- for (i = 0; i < filter->nb_outputs; i++) {
- FilterLinkInternal * const li = ff_link_internal(filter->outputs[i]);
- if (li->frame_wanted_out)
- return request_frame_to_filter(filter->outputs[i]);
- }
if (!filter->nb_outputs) {
ff_inlink_request_frame(filter->inputs[0]);
return 0;
@@ -1433,12 +1428,6 @@ static int filter_activate_default(AVFilterContext *filter)
repeatedly on a blocked input if another is not blocked (example:
[buffersrc1][testsrc1][buffersrc2][testsrc2]concat=v=2).
- - If an output has frame_wanted_out > 0 call request_frame().
-
- Rationale: even if all inputs are blocked an activate callback should
- request a frame on some if its inputs if a frame is requested on any of
- its output.
-
- Request a frame on the input for sinks.
Rationale: sinks using the old api have no way to request a frame on their
--
2.49.1
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org
next reply other threads:[~2025-11-17 16:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-17 16:06 Jack Lau via ffmpeg-devel [this message]
2025-11-18 19:29 ` [FFmpeg-devel] " Nicolas George via ffmpeg-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=176339557853.25.7196239267873298644@2cb04c0e5124 \
--to=ffmpeg-devel@ffmpeg.org \
--cc=code@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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