]> git.sesse.net Git - ffmpeg/commitdiff
Improve ffmpeg error reporting in case of input/output stream mismatch,
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 12 Jun 2008 22:07:17 +0000 (22:07 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Thu, 12 Jun 2008 22:07:17 +0000 (22:07 +0000)
enabling a dump_format() of the mismatched output stream.

Originally committed as revision 13760 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 4490320d26a1f62c46877f8ae48ebb35ef5a979c..1ad281b3227d6df8c0937c089a4c2b1b1552b183 100644 (file)
--- 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);