ffmpeg_opt: Ask for overwrite in single image2 files too
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Mar 2013 21:02:22 +0000 (22:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Mar 2013 21:09:01 +0000 (22:09 +0100)
Fixes Ticket1637

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg_opt.c

index 89aee67..2d890cf 100644 (file)
@@ -1706,7 +1706,8 @@ loop_end:
             print_error(filename, err);
             exit(1);
         }
-    }
+    } else if (strcmp(oc->oformat->name, "image2")==0 && !av_filename_number_test(filename))
+        assert_file_overwrite(filename);
 
     if (o->mux_preload) {
         uint8_t buf[64];