projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e89664
)
Flush the remaning chars in the input buffer after reading the
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Wed, 18 Mar 2009 21:34:19 +0000
(21:34 +0000)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Wed, 18 Mar 2009 21:34:19 +0000
(21:34 +0000)
response to the "Overwrite ? [y/N]" question.
Fix the behaviour when the question is asked more than one time.
Originally committed as revision 18036 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
57770e6
..
c4f910d
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-3404,6
+3404,8
@@
static void opt_output_file(const char *filename)
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);