next= ff_mpeg4_find_frame_end(pc, buf, buf_size);  if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) { *poutbuf = NULL; *poutbuf_size = 0; return buf_size;
if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){ next= buf_size; }else{ next= ff_mpeg4_find_frame_end(pc, buf, buf_size);  if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) { *poutbuf = NULL; *poutbuf_size = 0; return buf_size; }
static int mpeg4video_parse(AVCodecParserContext *s,                           AVCodecContext *avctx,                           uint8_t **poutbuf, int *poutbuf_size,                            const uint8_t *buf, int buf_size){    ParseContext *pc = s->priv_data;    int next;        next= ff_mpeg4_find_frame_end(pc, buf, buf_size);    if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) {        *poutbuf = NULL;        *poutbuf_size = 0;        return buf_size;    }    av_mpeg4_decode_header(s, avctx, buf, buf_size);    *poutbuf = (uint8_t *)buf;    *poutbuf_size = buf_size;    return next;}