Baptiste Coudurier <[email protected]> added the comment:

OK, investigated.

Problem is in ffmpeg.c and libavcodec/parser.c
                        //FIXME remove the following 2 lines they shall 
be replaced by the bitstream filters
                        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;

av_parser_change is called while it shouldn't. It will then call 
h264_split which will destroy some frames.

I don't really know what's the best solution here.
My guess is that av_parser_change should not be called if input and 
output stream have both GLOBAL_HEADER set.

Michael ?

----------
substatus: open -> analyzed

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1027>
_____________________________________________________

Reply via email to