This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit aaf86058513dcca1c8e4692704a87860b8be8e22 Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Aug 15 03:43:22 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Mon Oct 19 23:42:07 2026 +0000 fftools/ffmpeg_filter: do not drop subtitle EOF received before graph configuration This is bascially fairies suggested change Fixes: issue #20353 Regressed-by: d119ae2fd82 ("fftools/ffmpeg_filter: convert to the scheduler") --- fftools/ffmpeg_filter.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index c375934331..1b9befe046 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -3094,16 +3094,17 @@ static int sub2video_frame(InputFilter *ifilter, AVFrame *frame, int buffer) int ret; if (buffer) { - AVFrame *tmp; + // queue a NULL entry for EOF, so it is not lost when + // the queue is replayed after configuring the graph + AVFrame *tmp = NULL; - if (!frame) - return 0; + if (frame) { + tmp = av_frame_alloc(); + if (!tmp) + return AVERROR(ENOMEM); - tmp = av_frame_alloc(); - if (!tmp) - return AVERROR(ENOMEM); - - av_frame_move_ref(tmp, frame); + av_frame_move_ref(tmp, frame); + } ret = av_fifo_write(ifp->frame_queue, &tmp, 1); if (ret < 0) { -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
