Ticket #10504: 0001-fftools-ffmpeg-do-not-fail-on-AVERROR-EAGAIN-from-ch.patch

File 0001-fftools-ffmpeg-do-not-fail-on-AVERROR-EAGAIN-from-ch.patch, 954 bytes (added by elenril, 3 years ago)
  • fftools/ffmpeg.c

    From d8990495916f37a9f8978542ae3c94292eb415da Mon Sep 17 00:00:00 2001
    From: Anton Khirnov <anton@khirnov.net>
    Date: Tue, 5 Sep 2023 11:04:31 +0200
    Subject: [PATCH] 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
    ---
     fftools/ffmpeg.c | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
    index f1c5f40caf..fd2ce1c2d0 100644
    a b static int transcode(int *err_rate_exceeded)  
    11961196        if (ret == AVERROR(EAGAIN)) {
    11971197            reset_eagain();
    11981198            av_usleep(10000);
     1199            ret = 0;
    11991200            continue;
    12001201        } else if (ret < 0) {
    12011202            av_log(NULL, AV_LOG_VERBOSE, "No more output streams to write to, finishing.\n");