This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new a974a54486 avfilter: add less confusing error on frame queue overflow
a974a54486 is described below

commit a974a54486c865b4482139ec55df8a04861ae9e3
Author:     Niklas Haas <[email protected]>
AuthorDate: Mon May 4 13:26:51 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Wed Jul 1 12:12:15 2026 +0000

    avfilter: add less confusing error on frame queue overflow
    
    Currently, such filter graphs just fail with a nebulous:
    
      [fc#0 @ 0x2a7b3c0] [error] Error while filtering: Cannot allocate memory
    
    Sponsored-by: nxtedition AB
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavfilter/avfilter.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index b15f0b08b4..0d46d303de 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -1109,6 +1109,9 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
     filter_unblock(link->dst);
     ret = ff_framequeue_add(&li->fifo, frame);
     if (ret < 0) {
+        const FFFrameQueueGlobal *global = li->fifo.global;
+        if (ret == AVERROR(ENOMEM) && global->queued >= global->max_queued)
+            av_log(link->dst, AV_LOG_ERROR, "Exhausted frame queue capacity 
(%zu frames)\n", global->max_queued);
         av_frame_free(&frame);
         return ret;
     }

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to