fftools/opt_common: replace report_and_exit() with returning an error code

Remove report_and_exit(), as it has no more users.
This commit is contained in:
Anton Khirnov
2023-07-14 18:26:43 +02:00
parent 78699923ac
commit 411e183360
3 changed files with 7 additions and 20 deletions

View File

@@ -90,12 +90,6 @@ void register_exit(void (*cb)(int ret))
program_exit = cb;
}
void report_and_exit(int ret)
{
av_log(NULL, AV_LOG_FATAL, "%s\n", av_err2str(ret));
exit_program(AVUNERROR(ret));
}
void exit_program(int ret)
{
if (program_exit)