[FFmpeg-cvslog] r14462 - trunk/ffmpeg.c

stefano subversion
Mon Jul 28 23:54:12 CEST 2008


Author: stefano
Date: Mon Jul 28 23:54:12 2008
New Revision: 14462

Log:
Make ffmpeg dump output format in case of codec type mismatch between
an input stream and the corresponding output stream.


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Mon Jul 28 23:54:12 2008
@@ -1597,6 +1597,8 @@ static int av_encode(AVFormatContext **o
 
                 /* 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);




More information about the ffmpeg-cvslog mailing list