comparison 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
comparison
equal deleted inserted replaced
11790:f918fb753b31 11791:51abd780bda6
243 { 243 {
244 H264Context *h = s->priv_data; 244 H264Context *h = s->priv_data;
245 ParseContext *pc = &h->s.parse_context; 245 ParseContext *pc = &h->s.parse_context;
246 int next; 246 int next;
247 247
248 if (h->first_picture) { 248 if (!h->got_first) {
249 h->first_picture = 0; 249 h->got_first = 1;
250 if (avctx->extradata_size) { 250 if (avctx->extradata_size) {
251 h->s.avctx = avctx; 251 h->s.avctx = avctx;
252 ff_h264_decode_extradata(h); 252 ff_h264_decode_extradata(h);
253 } 253 }
254 } 254 }
325 325
326 static int init(AVCodecParserContext *s) 326 static int init(AVCodecParserContext *s)
327 { 327 {
328 H264Context *h = s->priv_data; 328 H264Context *h = s->priv_data;
329 h->thread_context[0] = h; 329 h->thread_context[0] = h;
330 h->first_picture = 1;
331 return 0; 330 return 0;
332 } 331 }
333 332
334 AVCodecParser h264_parser = { 333 AVCodecParser h264_parser = {
335 { CODEC_ID_H264 }, 334 { CODEC_ID_H264 },