Commit 88b85037 authored by stefano's avatar stefano

Make ffmpeg dump output format in case of codec type mismatch between

an input stream and the corresponding output stream.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14462 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bf181c33
...@@ -1597,6 +1597,8 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1597,6 +1597,8 @@ static int av_encode(AVFormatContext **output_files,
/* Sanity check that the stream types match */ /* Sanity check that the stream types match */
if (ist_table[ost->source_index]->st->codec->codec_type != ost->st->codec->codec_type) { 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", fprintf(stderr, "Codec type mismatch for mapping #%d.%d -> #%d.%d\n",
stream_maps[n-1].file_index, stream_maps[n-1].stream_index, stream_maps[n-1].file_index, stream_maps[n-1].stream_index,
ost->file_index, ost->index); ost->file_index, ost->index);
......
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