avfilter: signal an empty buffersrc with an explicit activate error code

No change in functionality.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint
2025-06-22 15:50:21 +02:00
parent eea6f0e32e
commit d41bac1333
4 changed files with 9 additions and 3 deletions

View File

@@ -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)