summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-11-17 23:27:05 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-11-17 23:27:05 +0000
commitfc5d0db59ae8bf883b60113e8d631b1e3b98bbdf (patch)
tree3cb1e61b558472b2fefc724285918ffe187cae51
parentbdb9fd9b7f90d3bc405c357402ea75d54f37239a (diff)
Improve error message in case of output file with no streams, dumping
the empty file format representation and specifying the index number of the output file. Originally committed as revision 15870 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d3a4ec26c3..2056efad2c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1582,7 +1582,8 @@ static int av_encode(AVFormatContext **output_files,
for(i=0;i<nb_output_files;i++) {
os = output_files[i];
if (!os->nb_streams) {
- fprintf(stderr, "Output file does not contain any stream\n");
+ dump_format(output_files[i], i, output_files[i]->filename, 1);
+ fprintf(stderr, "Output file #%d does not contain any stream\n", i);
av_exit(1);
}
nb_ostreams += os->nb_streams;