static int latm_find_frame_end(AVCodecParserContext *s1, const uint8_t *buf, int buf_size)
Find the end of the current frame in the bitstream. 
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_size)
Combine the (truncated) bitstream to a complete frame. 
static int latm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
main external API structure. 
uint32_t state
contains the last few bytes in MSB order