mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-08 05:28:40 +00:00
ffmpeg: Fix killing [Y/n] prompt with ctrl-c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cf7076ee96
commit
7b92863f30
1
ffmpeg.c
1
ffmpeg.c
@ -3302,6 +3302,7 @@ static void assert_file_overwrite(const char *filename)
|
|||||||
fprintf(stderr,"File '%s' already exists. Overwrite ? [y/N] ", filename);
|
fprintf(stderr,"File '%s' already exists. Overwrite ? [y/N] ", filename);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
term_exit();
|
term_exit();
|
||||||
|
signal(SIGINT, SIG_DFL);
|
||||||
if (!read_yesno()) {
|
if (!read_yesno()) {
|
||||||
av_log(0, AV_LOG_FATAL, "Not overwriting - exiting\n");
|
av_log(0, AV_LOG_FATAL, "Not overwriting - exiting\n");
|
||||||
exit_program(1);
|
exit_program(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user