mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-15 09:18:32 +00:00
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
This commit is contained in:
parent
a8d9da4c8b
commit
ced62a0c01
1 changed files with 1 additions and 0 deletions
|
@ -1196,6 +1196,7 @@ static int transcode(int *err_rate_exceeded)
|
||||||
if (ret == AVERROR(EAGAIN)) {
|
if (ret == AVERROR(EAGAIN)) {
|
||||||
reset_eagain();
|
reset_eagain();
|
||||||
av_usleep(10000);
|
av_usleep(10000);
|
||||||
|
ret = 0;
|
||||||
continue;
|
continue;
|
||||||
} else if (ret < 0) {
|
} else if (ret < 0) {
|
||||||
av_log(NULL, AV_LOG_VERBOSE, "No more output streams to write to, finishing.\n");
|
av_log(NULL, AV_LOG_VERBOSE, "No more output streams to write to, finishing.\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue