@@ -1004,7 +1004,9 @@ static void assert_file_overwrite(const char *filename)
}
if (!file_overwrite) {
- if (proto_name && !strcmp(proto_name, "file") && avio_check(filename, 0) == 0) {
+ if (proto_name &&
+ !(strcmp(proto_name, "file") && strcmp(proto_name, "fs")) &&
+ avio_check(filename, 0) == 0) {
if (stdin_interaction && !no_file_overwrite) {
fprintf(stderr,"File '%s' already exists. Overwrite? [y/N] ", filename);
fflush(stderr);
@@ -1023,7 +1025,7 @@ static void assert_file_overwrite(const char *filename)
}
}
- if (proto_name && !strcmp(proto_name, "file")) {
+ if (proto_name && !(strcmp(proto_name, "file") && strcmp(proto_name, "fs"))) {
for (int i = 0; i < nb_input_files; i++) {
InputFile *file = input_files[i];
if (file->ctx->iformat->flags & AVFMT_NOFILE)
Signed-off-by: Nicolas George <george@nsup.org> --- fftools/ffmpeg_opt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)