Browse Source

Alternative solution for the mpegvideo_split + mov problem.

Originally committed as revision 21625 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
5bfe91e683
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      ffmpeg.c

+ 4
- 1
ffmpeg.c View File

@@ -1507,7 +1507,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
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 {


Loading…
Cancel
Save