Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Marton Balint <cus@passwd.hu>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 4/7] avfilter/avfilter: simplify processing sinks without activate callback
Date: Sat, 21 Jun 2025 19:37:46 +0200 (CEST)
Message-ID: <f91e0234-a4c1-25fa-04b2-65937da37253@passwd.hu> (raw)
In-Reply-To: <c84df94a-3ecd-9f36-bb27-55e1ebcbd1ed@passwd.hu>



On Tue, 17 Jun 2025, Marton Balint wrote:

>
>
> On Tue, 17 Jun 2025, Andreas Rheinhardt wrote:
>
>>  Marton Balint:
>>>
>>>
>>>  On Tue, 17 Jun 2025, Andreas Rheinhardt wrote:
>>>
>>>>  Marton Balint:
>>>>>  Sinks without an activate callback (nullsink, anullsink) could cause
>>>>>  AVERROR(EAGAIN)-s in avfilter_graph_request_oldest() even when all
>>>>>  the filter
>>>>>  graphs inputs were in EOF state.
>>>>>
>>>>>  Fixes ticket #11624.
>>>>>  Fixes ticket #10988.
>>>>>  Fixes ticket #10990.
>>>>>
>>>>>  Signed-off-by: Marton Balint <cus@passwd.hu>
>>>>>  ---
>>>>>   libavfilter/avfiltergraph.c | 38 ++++++++++++++++++-------------------
>>>>>   1 file changed, 18 insertions(+), 20 deletions(-)
>>>>>
>>>>>  diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
>>>>>  index 2d6036df74..6f9f46f1ea 100644
>>>>>  --- a/libavfilter/avfiltergraph.c
>>>>>  +++ b/libavfilter/avfiltergraph.c
>>>>>  @@ -1423,12 +1423,26 @@ void
>>>>>  ff_avfilter_graph_update_heap(AVFilterGraph *graph,
>>>>>  FilterLinkInternal *li)
>>>>>       heap_bubble_down(graphi, li, li->age_index);
>>>>>   }
>>>>>
>>>>>  +static int process_legacy_sink_output(FilterLinkInternal *oldesti)
>>>>
>>>>  Why is considered legacy (instead of being just a different API)?
>>>>
>>>
>>>  The documentation calls it legacy:
>>>
>>>  doc/filtering_design:
>>>
>>>  "The design using filter_frame() and request_frame() is legacy, but it is
>>>   suitable for filters that have a single input and process one frame at a
>>>   time."
>>>
>>>  avfilter/avfilter.c:
>>>
>>>  "In order to activate a filter implementing the legacy filter_frame()
>>>   and request_frame() methods, perform the first possible of the following
>>>   actions:"
>>>
>>>  But if you have another name in mind for this, I can change it.
>>>
>>  Why not just call it the "simple" API?
>
> Ok, changed locally the function name to process_simple_api_sink().

I withdraw this patch for now, because I am no longer sure this is the 
proper fix. I will apply the rest of patches in the series, except the 
f_select port to activate. I will resubmit that later in another patch 
series.

Regards,
Marton
_______________________________________________
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".

  reply	other threads:[~2025-06-21 17:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-16 22:43 [FFmpeg-devel] [PATCH 1/7] fftools/ffmpeg_filter: simplify control flow in read_frames Marton Balint
2025-06-16 22:43 ` [FFmpeg-devel] [PATCH 2/7] avfilter/split: consume all frames before forwarding inlink status Marton Balint
2025-06-18 11:39   ` Nicolas George
2025-06-16 22:43 ` [FFmpeg-devel] [PATCH 3/7] avfilter/f_select: port to activate Marton Balint
2025-06-16 22:43 ` [FFmpeg-devel] [PATCH 4/7] avfilter/avfilter: simplify processing sinks without activate callback Marton Balint
2025-06-16 22:56   ` Andreas Rheinhardt
2025-06-16 23:02     ` Marton Balint
2025-06-16 23:54       ` Andreas Rheinhardt
2025-06-17 20:07         ` Marton Balint
2025-06-21 17:37           ` Marton Balint [this message]
2025-06-16 22:43 ` [FFmpeg-devel] [PATCH 5/7] avfilter/af_aresample: merge request_frame into activate function Marton Balint
2025-06-16 22:43 ` [FFmpeg-devel] [PATCH 6/7] avfilter/af_aresample: make aresample return FFERROR_NOT_READY when no progress can be made Marton Balint
2025-06-16 22:43 ` [FFmpeg-devel] [PATCH 7/7] avfilter/af_aresample: rework activate logic to follow the advised flow more strictly Marton Balint

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=f91e0234-a4c1-25fa-04b2-65937da37253@passwd.hu \
    --to=cus@passwd.hu \
    --cc=ffmpeg-devel@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