diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-09-05 11:04:31 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-09-14 10:44:05 +0200 |
commit | ced62a0c010f74a713fa7f93c115e2284e22f96c (patch) | |
tree | e2925ac776817e2fffe6ae6b9d009320bc6f2e8f /fftools/ffmpeg.c | |
parent | a8d9da4c8b574dab4f35f4b6802f52b1bc0156cc (diff) | |
download | ffmpeg-ced62a0c010f74a713fa7f93c115e2284e22f96c.tar.gz |
fftools/ffmpeg: do not fail on AVERROR(EAGAIN) from choose_output()
This is not an error condition, but would be treated like one if the
program terminates on the next transcode loop iteration because of a
signal or keyboard input.
Fixes #10504
Tested-by: https://github.com/0Ky
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index f1c5f40caf..fd2ce1c2d0 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1196,6 +1196,7 @@ static int transcode(int *err_rate_exceeded) if (ret == AVERROR(EAGAIN)) { reset_eagain(); av_usleep(10000); + ret = 0; continue; } else if (ret < 0) { av_log(NULL, AV_LOG_VERBOSE, "No more output streams to write to, finishing.\n"); |