summaryrefslogtreecommitdiff
path: root/libavcodec/h261_parser.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-04-24 19:17:17 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-04-25 00:20:03 +0200
commit02e3f7d042aabd98d4114f7f84b4b480a93daaa1 (patch)
treea76510b1f6be3edf70c57eacfc9f89d933f3807b /libavcodec/h261_parser.c
parent69f58958ce8f81b153b14c60959ba37d6bf0b8cf (diff)
downloadffmpeg-02e3f7d042aabd98d4114f7f84b4b480a93daaa1.tar.gz
Support PARSER_FLAG_COMPLETE_FRAMES for h261 and h263 parsers.
Diffstat (limited to 'libavcodec/h261_parser.c')
-rw-r--r--libavcodec/h261_parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h261_parser.c b/libavcodec/h261_parser.c
index defc1cb46f..4d20afe8d6 100644
--- a/libavcodec/h261_parser.c
+++ b/libavcodec/h261_parser.c
@@ -70,12 +70,16 @@ static int h261_parse(AVCodecParserContext *s,
ParseContext *pc = s->priv_data;
int next;
+ if (s->flags & PARSER_FLAG_COMPLETE_FRAMES) {
+ next = buf_size;
+ } else {
next= h261_find_frame_end(pc,avctx, buf, buf_size);
if (ff_combine_frame(pc, next, &buf, &buf_size) < 0) {
*poutbuf = NULL;
*poutbuf_size = 0;
return buf_size;
}
+ }
*poutbuf = buf;
*poutbuf_size = buf_size;
return next;