[FFmpeg-cvslog] ffmpeg: Fix killing [Y/n] prompt with ctrl-c
Michael Niedermayer
git at videolan.org
Fri Dec 16 21:00:13 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 16 19:43:54 2011 +0100| [7b92863f30b1a748dc17bf662379261b42751f86] | committer: Michael Niedermayer
ffmpeg: Fix killing [Y/n] prompt with ctrl-c
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b92863f30b1a748dc17bf662379261b42751f86
---
ffmpeg.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index aa90fe6..f64d739 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);
More information about the ffmpeg-cvslog
mailing list