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

michael subversion
Wed Feb 3 15:53:15 CET 2010


Author: michael
Date: Wed Feb  3 15:53:14 2010
New Revision: 21625

Log:
Alternative solution for the mpegvideo_split + mov problem.

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Wed Feb  3 10:58:14 2010	(r21624)
+++ trunk/ffmpeg.c	Wed Feb  3 15:53:14 2010	(r21625)
@@ -1507,7 +1507,10 @@ static int output_packet(AVInputStream *
                         opkt.flags= pkt->flags;
 
                         //FIXME remove the following 2 lines they shall be replaced by the bitstream filters
-                        if(ost->st->codec->codec_id != CODEC_ID_H264) {
+                        if(   ost->st->codec->codec_id != CODEC_ID_H264
+                           && ost->st->codec->codec_id != CODEC_ID_MPEG1VIDEO
+                           && ost->st->codec->codec_id != CODEC_ID_MPEG2VIDEO
+                           ) {
                             if(av_parser_change(ist->st->parser, ost->st->codec, &opkt.data, &opkt.size, data_buf, data_size, pkt->flags & PKT_FLAG_KEY))
                                 opkt.destruct= av_destruct_packet;
                         } else {



More information about the ffmpeg-cvslog mailing list