summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-03-09 19:53:11 +0100
committerAnton Khirnov <anton@khirnov.net>2024-03-12 09:47:56 +0100
commit639208cc6adae159008e089f7d82f132720f7fc9 (patch)
tree034813e7384865ee4db379b6f35c889b6c88bf53 /fftools
parentce178be8b0caf3255ceeeff14a8c3619dac5cc8a (diff)
fftools/ffmpeg_filter: don't forward EOF in close_output()
The caller does not need or expect it, and it can lead to terminating filtering prematurely in case there is more than one output.
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg_filter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 65574809bf..8134afebd7 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -2199,7 +2199,8 @@ static int close_output(OutputFilterPriv *ofp, FilterGraphThread *fgt)
fgt->eof_out[ofp->index] = 1;
- return sch_filter_send(fgp->sch, fgp->sch_idx, ofp->index, NULL);
+ ret = sch_filter_send(fgp->sch, fgp->sch_idx, ofp->index, NULL);
+ return (ret == AVERROR_EOF) ? 0 : ret;
}
static int fg_output_frame(OutputFilterPriv *ofp, FilterGraphThread *fgt,