summaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-07-28 21:54:12 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-07-28 21:54:12 +0000
commit150d5a259b5118367883d328178c7a24326c834c (patch)
tree25fbf6b3fcf974710cec5e53420a8ce102fee5e3 /ffmpeg.c
parent2cf3c8632cb8d2819942f45aefd1cb5faa014da0 (diff)
downloadffmpeg-streaming-150d5a259b5118367883d328178c7a24326c834c.zip
ffmpeg-streaming-150d5a259b5118367883d328178c7a24326c834c.tar.gz
Make ffmpeg dump output format in case of codec type mismatch between
an input stream and the corresponding output stream. Originally committed as revision 14462 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 ba615b3..62802dd 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1597,6 +1597,8 @@ static int av_encode(AVFormatContext **output_files,
/* Sanity check that the stream types match */
if (ist_table[ost->source_index]->st->codec->codec_type != ost->st->codec->codec_type) {
+ int i= ost->file_index;
+ dump_format(output_files[i], i, output_files[i]->filename, 1);
fprintf(stderr, "Codec type mismatch for mapping #%d.%d -> #%d.%d\n",
stream_maps[n-1].file_index, stream_maps[n-1].stream_index,
ost->file_index, ost->index);
OpenPOWER on IntegriCloud