diff h264_parser.c @ 11791:51abd780bda6 libavcodec

Cleanup prev commit, flag variable should start with 0
author hyc
date Fri, 28 May 2010 20:14:14 +0000
parents f918fb753b31
children cabcd751b1e5
line wrap: on
line diff
--- a/h264_parser.c	Fri May 28 18:50:39 2010 +0000
+++ b/h264_parser.c	Fri May 28 20:14:14 2010 +0000
@@ -245,8 +245,8 @@
     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 @@
 {
     H264Context *h = s->priv_data;
     h->thread_context[0] = h;
-    h->first_picture = 1;
     return 0;
 }