summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 57770e630d..c4f910d1cd 100644
--- 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);