Commit fe0d672b authored by bcoudurier's avatar bcoudurier

h264 complete frames parsing support

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8398 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8336aa6c
......@@ -8048,6 +8048,9 @@ static int h264_parse(AVCodecParserContext *s,
ParseContext *pc = &h->s.parse_context;
int next;
if(s->flags & PARSER_FLAG_COMPLETE_FRAMES){
next= buf_size;
}else{
next= find_frame_end(h, buf, buf_size);
if (ff_combine_frame(pc, next, (uint8_t **)&buf, &buf_size) < 0) {
......@@ -8059,6 +8062,7 @@ static int h264_parse(AVCodecParserContext *s,
if(next<0){
find_frame_end(h, &pc->buffer[pc->last_index + next], -next); //update state
}
}
*poutbuf = (uint8_t *)buf;
*poutbuf_size = buf_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment