[FFmpeg-cvslog] ffmpeg_opt: Ask for overwrite in single image2 files too
Michael Niedermayer
git at videolan.org
Sun Mar 3 22:29:34 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Mar 3 22:02:22 2013 +0100| [e2427f04b7bc47968f738ce2a1d7d6c7148f240f] | committer: Michael Niedermayer
ffmpeg_opt: Ask for overwrite in single image2 files too
Fixes Ticket1637
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e2427f04b7bc47968f738ce2a1d7d6c7148f240f
---
ffmpeg_opt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 89aee67..2d890cf 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -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];
More information about the ffmpeg-cvslog
mailing list