Ticket #2091 (closed defect: invalid)
ffmpeg can easily overwrite lots of video files
|Reported by:||forthrin||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
A moment thoughtlessness with filename wildcards can cause ffmpeg to zero out every single video files in the current directory, causing the user to jump out the window or what have you.
How to reproduce:
% ffmpeg -i *.mkv ... output.mp4
*.mkv is expanded to a long list of files, and evidently all of these files (except the first one) are considered to be output files by ffmpeg. They are zeroed out at least.
a) Let input files be specified simply by filename (without "-i") and the output file explicitly by "-o".
b) Let all filenames following "-i" be considered to be input files (except the last one, which would be the output file)
c) Simply exit ffmpeg if there are multiple output filenames (doesn't ffmpeg only support one output file anyway?)
- Analyzed by developer set
- Status changed from new to closed
- Resolution set to invalid
- Reproduced by developer set