Commit 6d401f04 authored by stefano's avatar stefano

Improve ffmpeg error reporting in case of input/output stream mismatch,

enabling a dump_format() of the mismatched output stream. 



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13760 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 67d6940a
...@@ -1630,6 +1630,8 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1630,6 +1630,8 @@ static int av_encode(AVFormatContext **output_files,
} }
} }
if (!found) { if (!found) {
int i= ost->file_index;
dump_format(output_files[i], i, output_files[i]->filename, 1);
fprintf(stderr, "Could not find input stream matching output stream #%d.%d\n", fprintf(stderr, "Could not find input stream matching output stream #%d.%d\n",
ost->file_index, ost->index); ost->file_index, ost->index);
av_exit(1); av_exit(1);
......
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