[FFmpeg-cvslog] r18036 - trunk/ffmpeg.c
stefano
subversion
Wed Mar 18 22:34:20 CET 2009
Author: stefano
Date: Wed Mar 18 22:34:19 2009
New Revision: 18036
Log:
Flush the remaning chars in the input buffer after reading the
response to the "Overwrite ? [y/N]" question.
Fix the behaviour when the question is asked more than one time.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Wed Mar 18 21:10:09 2009 (r18035)
+++ trunk/ffmpeg.c Wed Mar 18 22:34:19 2009 (r18036)
@@ -3404,6 +3404,8 @@ static void opt_output_file(const char *
fprintf(stderr, "Not overwriting - exiting\n");
av_exit(1);
}
+ while (c != '\n' && c != EOF)
+ c = getchar();
}
else {
fprintf(stderr,"File '%s' already exists. Exiting.\n", filename);
More information about the ffmpeg-cvslog
mailing list