aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2025-06-22 15:50:21 +0200
committerMarton Balint <cus@passwd.hu>2025-07-03 21:41:54 +0200
commitd41bac1333b0a9ab621922a3e306ca455ff3b9a3 (patch)
tree1440a151d1f2647c9fc406fa308e8b70a264814b /libavfilter/avfiltergraph.c
parenteea6f0e32e195f9ee851266e569b8a2fa9914ef1 (diff)
downloadffmpeg-d41bac1333b0a9ab621922a3e306ca455ff3b9a3.tar.gz
avfilter: signal an empty buffersrc with an explicit activate error code
No change in functionality. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 2d6036df74..38b89db22a 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -1460,6 +1460,8 @@ int avfilter_graph_request_oldest(AVFilterGraph *graph)
frame_count = oldesti->l.frame_count_out;
while (frame_count == oldesti->l.frame_count_out) {
r = ff_filter_graph_run_once(graph);
+ if (r == FFERROR_BUFFERSRC_EMPTY)
+ r = 0;
if (r == AVERROR(EAGAIN) &&
!oldesti->frame_wanted_out && !oldesti->frame_blocked_in &&
!oldesti->status_in)