# HG changeset patch # User michael # Date 1119946403 0 # Node ID 3eddfe241bb91d7ea600bfca7c5662e81199ff0e # Parent 1d1b328d07cef965599a3b04fb10687f35590259 support extracting sps/pps from bitstream and putting it in extradata diff -r 1d1b328d07ce -r 3eddfe241bb9 h264.c --- a/h264.c Tue Jun 28 06:45:41 2005 +0000 +++ b/h264.c Tue Jun 28 08:13:23 2005 +0000 @@ -7133,6 +7133,13 @@ } pc->frame_start_found = 1; } + if((state&0xFFFFFF1F) == 0x107 || (state&0xFFFFFF1F) == 0x108 || (state&0xFFFFFF1F) == 0x109){ + if(pc->frame_start_found){ + pc->state=-1; + pc->frame_start_found= 0; + return i-4; + } + } if (i4 && buf[i-5]==0) i--; + return i-4; + } + } + if (is; AVCodecContext * const avctx= s->avctx; @@ -7709,6 +7741,7 @@ NULL, h264_parse, ff_parse_close, + h264_split, }; #include "svq3.c"