Commit cd411dba authored by stefano's avatar stefano

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15870 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 73807b15
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment