summaryrefslogtreecommitdiff
path: root/libavcodec/h264_parser.c
diff options
context:
space:
mode:
authorHoward Chu <hyc@highlandsun.com>2010-05-28 20:14:14 +0000
committerHoward Chu <hyc@highlandsun.com>2010-05-28 20:14:14 +0000
commit82f1ffc7ba5efc6a99570fa4936b9453e838ca03 (patch)
treeeed13bed69a6179ee7dbddc576bf21c34e58c8f8 /libavcodec/h264_parser.c
parent23584bec87f2cab947e28ba54b0499492d6e5891 (diff)
Cleanup prev commit, flag variable should start with 0
Originally committed as revision 23364 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r--libavcodec/h264_parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 06271cf41c..890e0a8930 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -245,8 +245,8 @@ static int h264_parse(AVCodecParserContext *s,
ParseContext *pc = &h->s.parse_context;
int next;
- if (h->first_picture) {
- h->first_picture = 0;
+ if (!h->got_first) {
+ h->got_first = 1;
if (avctx->extradata_size) {
h->s.avctx = avctx;
ff_h264_decode_extradata(h);
@@ -327,7 +327,6 @@ static int init(AVCodecParserContext *s)
{
H264Context *h = s->priv_data;
h->thread_context[0] = h;
- h->first_picture = 1;
return 0;
}