Commit b48cf541 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: do not call exit from exit_program()

This should fix  Ticket2116
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 127ff886)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5f3fa5f9
......@@ -471,7 +471,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);
}
}
......@@ -3220,6 +3219,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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment