Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] Revert " avfilter/avfilter: always forward request frame in filter_activate_default" (PR #20944)
@ 2025-11-17 16:06 Jack Lau via ffmpeg-devel
  2025-11-18 19:29 ` [FFmpeg-devel] " Nicolas George via ffmpeg-devel
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Lau via ffmpeg-devel @ 2025-11-17 16:06 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Jack Lau

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [FFmpeg-devel] Re: [PATCH] Revert " avfilter/avfilter: always forward request frame in filter_activate_default" (PR #20944)
  2025-11-17 16:06 [FFmpeg-devel] [PATCH] Revert " avfilter/avfilter: always forward request frame in filter_activate_default" (PR #20944) Jack Lau via ffmpeg-devel
@ 2025-11-18 19:29 ` Nicolas George via ffmpeg-devel
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas George via ffmpeg-devel @ 2025-11-18 19:29 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Jack Lau, Nicolas George

Jack Lau via ffmpeg-devel (HE12025-11-17):
> 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>

Yes, thanks.

I think the next one, “avfilter/avfilter: make filter_activate_default
request frames on behalf of sinks”, needs to be reverted too: it is a
mistake to expect a single logic to work for every kind of sinks.
Really, sinks have never worked reliably, they need to express their own
logic.

Regards,

-- 
  Nicolas George
_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-18 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-17 16:06 [FFmpeg-devel] [PATCH] Revert " avfilter/avfilter: always forward request frame in filter_activate_default" (PR #20944) Jack Lau via ffmpeg-devel
2025-11-18 19:29 ` [FFmpeg-devel] " Nicolas George via ffmpeg-devel

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