Commit 7b92863f authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Fix killing [Y/n] prompt with ctrl-c

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cf7076ee
......@@ -3302,6 +3302,7 @@ static void assert_file_overwrite(const char *filename)
fprintf(stderr,"File '%s' already exists. Overwrite ? [y/N] ", filename);
fflush(stderr);
term_exit();
signal(SIGINT, SIG_DFL);
if (!read_yesno()) {
av_log(0, AV_LOG_FATAL, "Not overwriting - exiting\n");
exit_program(1);
......
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