From 0fd815aef95399922f1386bcb1c1f835ebac18bf Mon Sep 17 00:00:00 2001 From: bcoudurier Date: Sun, 14 Jun 2009 23:55:25 +0000 Subject: [PATCH] do not use av_parser_change for h264 which uses bitstream filter, fix #1027 git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19196 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- ffmpeg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 509be6e5d..a1cb5097b 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1407,8 +1407,13 @@ 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(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 { + opkt.data = data_buf; + opkt.size = data_size; + } write_frame(os, &opkt, ost->st->codec, bitstream_filters[ost->file_index][opkt.stream_index]); ost->st->codec->frame_number++; -- 2.11.4.GIT