Exit codes are usually uint8_t with the upper half of the value sometimes indicating signals. AVERROR codes are larger, it is possible that an AVERROR code maps to 0.
Signed-off-by: Nicolas George <[email protected]> --- fftools/ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index b394243f59..124f82371f 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1052,7 +1052,7 @@ finish: sch_free(&sch); av_log(NULL, AV_LOG_VERBOSE, "\n"); - av_log(NULL, AV_LOG_VERBOSE, "Exiting with exit code %d\n", ret); + av_log(NULL, AV_LOG_VERBOSE, "Exiting with status %d\n", ret); - return ret; + return ret < 0 ? EXIT_FAILURE : EXIT_SUCCESS; } -- 2.53.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
