39     for (i = 0; i < buf_size && !vop_found; i++) {
 
   40         state = (state << 8) | buf[i];
 
   41         for (j = 0; j < 8; j++) {
 
   42             if (((state >> j) & 0xFFFFF0) == 0x000100) {
 
   49         for (; i < buf_size; i++) {
 
   50             state = (state << 8) | buf[i];
 
   51             for (j = 0; j < 8; j++) {
 
   52                 if (((state >> j) & 0xFFFFF0) == 0x000100) {
 
   54                     pc->
state             = (state >> (3 * 8)) + 0xFF00;
 
   68                       const uint8_t **poutbuf, 
int *poutbuf_size,
 
   85     *poutbuf_size = buf_size;
 
AVCodecParser ff_h261_parser
static int h261_find_frame_end(ParseContext *pc, AVCodecContext *avctx, const uint8_t *buf, int buf_size)
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
Combine the (truncated) bitstream to a complete frame. 
void ff_parse_close(AVCodecParserContext *s)
main external API structure. 
uint32_t state
contains the last few bytes in MSB order 
#define PARSER_FLAG_COMPLETE_FRAMES
static int h261_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)