1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

fftools/ffmpeg_filter: check sub2video_frame() return value when flushing the queue

This commit is contained in:
Michael Niedermayer
2026-08-15 03:43:11 +02:00
committed by michaelni
parent 5e42af52ad
commit 250f0f1624

View File

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