1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

fftools/ffmpeg_filter: simplify control flow in read_frames

No functional change.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint
2025-06-09 22:38:45 +02:00
parent daef348574
commit 606efaa2cf

View File

@ -2672,7 +2672,7 @@ static int read_frames(FilterGraph *fg, FilterGraphThread *fgt,
ret = avfilter_graph_request_oldest(fgt->graph); ret = avfilter_graph_request_oldest(fgt->graph);
if (ret == AVERROR(EAGAIN)) { if (ret == AVERROR(EAGAIN)) {
fgt->next_in = choose_input(fg, fgt); fgt->next_in = choose_input(fg, fgt);
break; return 0;
} else if (ret < 0) { } else if (ret < 0) {
if (ret == AVERROR_EOF) if (ret == AVERROR_EOF)
av_log(fg, AV_LOG_VERBOSE, "Filtergraph returned EOF, finishing\n"); av_log(fg, AV_LOG_VERBOSE, "Filtergraph returned EOF, finishing\n");
@ -2702,7 +2702,7 @@ static int read_frames(FilterGraph *fg, FilterGraphThread *fgt,
did_step = 1; did_step = 1;
} }
return (fgp->nb_outputs_done == fg->nb_outputs) ? AVERROR_EOF : 0; return AVERROR_EOF;
} }
static void sub2video_heartbeat(InputFilter *ifilter, int64_t pts, AVRational tb) static void sub2video_heartbeat(InputFilter *ifilter, int64_t pts, AVRational tb)