From 7b92863f30b1a748dc17bf662379261b42751f86 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 16 Dec 2011 19:43:54 +0100 Subject: [PATCH] ffmpeg: Fix killing [Y/n] prompt with ctrl-c Signed-off-by: Michael Niedermayer --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index aa90fe6bbf..f64d7394f6 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -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);