1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-24 10:21:49 +02:00

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
This commit is contained in:
Stefano Sabatini 2008-07-28 21:54:12 +00:00
parent 2cf3c8632c
commit 150d5a259b

View File

@ -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);