From: Stefano Sabatini Date: Thu, 12 Jun 2008 22:07:17 +0000 (+0000) Subject: Improve ffmpeg error reporting in case of input/output stream mismatch, X-Git-Tag: v0.5~4158 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/462cca10cf1a48fc0ca1bb98dc26bcebeb8bb78b?ds=sidebyside Improve ffmpeg error reporting in case of input/output stream mismatch, enabling a dump_format() of the mismatched output stream. Originally committed as revision 13760 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/ffmpeg.c b/ffmpeg.c index 4490320..1ad281b 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1630,6 +1630,8 @@ static int av_encode(AVFormatContext **output_files, } } 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", ost->file_index, ost->index); av_exit(1);