PR #23012 opened by Niklas Haas (haasn) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23012 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23012.patch
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]> >From 6d20e0d89b1c86e40215d8cdd42d2b1c46195b87 Mon Sep 17 00:00:00 2001 From: Niklas Haas <[email protected]> Date: Mon, 4 May 2026 13:26:51 +0200 Subject: [PATCH] avfilter/framequeue: 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/framequeue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/framequeue.c b/libavfilter/framequeue.c index 3363406ba7..dab2cabd3b 100644 --- a/libavfilter/framequeue.c +++ b/libavfilter/framequeue.c @@ -69,8 +69,11 @@ int ff_framequeue_add(FFFrameQueue *fq, AVFrame *frame) FFFrameBucket *b; check_consistency(fq); - if (fq->global->queued >= fq->global->max_queued) + if (fq->global->queued >= fq->global->max_queued) { + av_log(NULL, AV_LOG_ERROR, "Exhausted frame queue capacity (%zu frames)\n", + fq->global->max_queued); return AVERROR(ENOMEM); + } if (fq->queued == fq->allocated) { if (fq->allocated == 1) { size_t na = 8; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
