aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-16 19:43:54 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-03 19:02:52 +0100
commit95234da75eac6e77d5747abecd3f2edf45c3a37c (patch)
tree81768c5577668aa682b4478ff7a8b3fbd255e954
parentcb7579ae6f241b3048813cd82ed60d9eeb34bca0 (diff)
downloadffmpeg-95234da75eac6e77d5747abecd3f2edf45c3a37c.tar.gz
ffmpeg: Fix killing [Y/n] prompt with ctrl-c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 7b92863f30b1a748dc17bf662379261b42751f86) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index e37f75b78e..f126a6a719 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);