You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
fftools/ffmpeg: Log exit code on exit
When viewing logs, there are situations where it is not entirely clear whether ffmpeg CLI has exited gracefully. The two primary cases are - A crash/segfault has occured Windows for example doesn't output any message to the calling shell - The process has been terminated (e.g. killed externally) Printing a message on exit provides a reliable indication that the process has exited normally. Printing the exit code is useful as it usually remains invisible and unnoticed by users running FFmpeg from a shell. Signed-off-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
@ -1022,5 +1022,8 @@ finish:
|
||||
|
||||
sch_free(&sch);
|
||||
|
||||
av_log(NULL, AV_LOG_VERBOSE, "\n");
|
||||
av_log(NULL, AV_LOG_VERBOSE, "Exiting with exit code %d\n", ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user