aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-06-12 22:07:17 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-06-12 22:07:17 +0000
commit462cca10cf1a48fc0ca1bb98dc26bcebeb8bb78b (patch)
treea36c28367d5e05334e9c540e861c1e3d50ca7353 /ffmpeg.c
parentfe4bf37455e81ecf2c0b769c979bdf6eec785602 (diff)
downloadffmpeg-462cca10cf1a48fc0ca1bb98dc26bcebeb8bb78b.tar.gz
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 4490320d26..1ad281b322 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);