From 250f0f1624bd2f98409e778e5c79cb83b73ea698 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 15 Aug 2026 03:43:11 +0200 Subject: [PATCH] fftools/ffmpeg_filter: check sub2video_frame() return value when flushing the queue --- fftools/ffmpeg_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 54ba036d7c..c375934331 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -2309,7 +2309,7 @@ static int configure_filtergraph(FilterGraph *fg, FilterGraphThread *fgt) AVFrame *tmp; while (av_fifo_read(ifp->frame_queue, &tmp, 1) >= 0) { if (ifp->type_src == AVMEDIA_TYPE_SUBTITLE) { - sub2video_frame(&ifp->ifilter, tmp, !fgt->graph); + ret = sub2video_frame(&ifp->ifilter, tmp, !fgt->graph); } else { if (ifp->type_src == AVMEDIA_TYPE_VIDEO) { if (ifp->displaymatrix_applied)