diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-25 16:17:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-25 16:17:06 +0100 |
commit | e1d48786d577976fb8bb87dcd89097e87d080cfd (patch) | |
tree | 823e00da60ea249c389b13085fca281d19d0bf31 /ffmpeg.c | |
parent | 12d276531c4b76245532aad5253ce13b94f63979 (diff) | |
download | ffmpeg-e1d48786d577976fb8bb87dcd89097e87d080cfd.tar.gz |
ffmpeg: Warn if output file is empty
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1526,6 +1526,9 @@ static void print_report(OutputFile *output_files, extra_size/1024.0, 100.0*(total_size - raw)/raw ); + if(video_size + audio_size + extra_size == 0){ + av_log(NULL, AV_LOG_WARNING, "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)\n"); + } } } |