fftools/ffmpeg_enc: return errors from enc_flush() instead of aborting

This commit is contained in:
Anton Khirnov
2023-07-13 13:34:32 +02:00
parent dde3de0170
commit 43bcf631d0
3 changed files with 6 additions and 4 deletions

View File

@ -1250,7 +1250,7 @@ static int transcode(int *err_rate_exceeded)
} else if (err_rate)
av_log(ist, AV_LOG_VERBOSE, "Decode error rate %g\n", err_rate);
}
enc_flush();
ret = err_merge(ret, enc_flush());
term_exit();