46         for(i=0; i<buf_size; i++){
    47             state= (state<<8) | buf[i];
    60         for(; i<buf_size; i++){
    61             state= (state<<8) | buf[i];
    62             if((state&0xFFFFFF00) == 0x100){
    78                            const uint8_t **poutbuf, 
int *poutbuf_size,
    96     *poutbuf_size = buf_size;
 
#define SLICE_MAX_START_CODE
int ff_mpeg4video_split(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. 
static char * split(char *message, char delim)
void ff_parse_close(AVCodecParserContext *s)
static int cavs_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size)
Find the end of the current frame in the bitstream. 
main external API structure. 
AVCodecParser ff_cavsvideo_parser
uint32_t state
contains the last few bytes in MSB order 
#define PIC_PB_START_CODE
#define PARSER_FLAG_COMPLETE_FRAMES
static int cavsvideo_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)