mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: do not call exit from exit_program()
This should fix Ticket2116 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
68dfe530e0
commit
127ff88639
3
ffmpeg.c
3
ffmpeg.c
|
@ -481,7 +481,6 @@ static void exit_program(void)
|
|||
if (received_sigterm) {
|
||||
av_log(NULL, AV_LOG_INFO, "Received signal %d: terminating.\n",
|
||||
(int) received_sigterm);
|
||||
exit (255);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3316,6 +3315,6 @@ int main(int argc, char **argv)
|
|||
printf("bench: utime=%0.3fs maxrss=%ikB\n", ti / 1000000.0, maxrss);
|
||||
}
|
||||
|
||||
exit(0);
|
||||
exit(received_nb_signals ? 255 : 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue