aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-06-14 23:55:25 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-06-14 23:55:25 +0000
commitd310d56a3690a959a41d5c3765792d6c678d3a88 (patch)
tree4b4e427251219f77b6c1dd275e907f4feecf7852 /ffmpeg.c
parenta4ddf509fe1ffeeab9c18c04e4589f0292729b24 (diff)
downloadffmpeg-d310d56a3690a959a41d5c3765792d6c678d3a88.tar.gz
do not use av_parser_change for h264 which uses bitstream filter, fix #1027
Originally committed as revision 19196 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 509be6e5d2..a1cb5097b4 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++;