summaryrefslogtreecommitdiff
path: root/libavcodec/h264_parser.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2010-05-26 04:20:32 +0000
committerAlex Converse <alex.converse@gmail.com>2010-05-26 04:20:32 +0000
commit74a6df59e3bc206931e8e7270c4bb6af77c6e5dc (patch)
treed18c34e54a3c4e7546dba4ad2004463faaeac263 /libavcodec/h264_parser.c
parent9069b7d35fba37e0e0d9dbb44f03c10ff2e50acf (diff)
Add an AVSTREAM_PARSE_FULL_ONCE parsing mode to parse headers and combine packets once and only once.
Originally committed as revision 23332 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r--libavcodec/h264_parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index a3cbe3b39c..88529505af 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -272,6 +272,9 @@ static int h264_parse(AVCodecParserContext *s,
s->dts_ref_dts_delta = INT_MIN;
s->pts_dts_delta = INT_MIN;
}
+ if (s->flags & PARSER_FLAG_ONCE) {
+ s->flags &= PARSER_FLAG_COMPLETE_FRAMES;
+ }
}
*poutbuf = buf;