diff options
Diffstat (limited to 'libavcodec/h263_parser.c')
-rw-r--r-- | libavcodec/h263_parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h263_parser.c b/libavcodec/h263_parser.c index e08198324b..2a00291ec2 100644 --- a/libavcodec/h263_parser.c +++ b/libavcodec/h263_parser.c @@ -70,6 +70,9 @@ static int h263_parse(AVCodecParserContext *s, ParseContext *pc = s->priv_data; int next; + if (s->flags & PARSER_FLAG_COMPLETE_FRAMES) { + next = buf_size; + } else { next= ff_h263_find_frame_end(pc, buf, buf_size); if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) { @@ -77,6 +80,7 @@ static int h263_parse(AVCodecParserContext *s, *poutbuf_size = 0; return buf_size; } + } *poutbuf = buf; *poutbuf_size = buf_size; |