Mercurial > libavcodec.hg
comparison cavsdec.c @ 8794:1f98fc269920 libavcodec
fix parsing of pic_structure
author | stefang |
---|---|
date | Tue, 10 Feb 2009 17:08:56 +0000 |
parents | d46cde168c69 |
children | e18df4791658 |
comparison
equal
deleted
inserted
replaced
8793:d46cde168c69 | 8794:1f98fc269920 |
---|---|
497 } | 497 } |
498 | 498 |
499 if(s->low_delay) | 499 if(s->low_delay) |
500 get_ue_golomb(&s->gb); //bbv_check_times | 500 get_ue_golomb(&s->gb); //bbv_check_times |
501 h->progressive = get_bits1(&s->gb); | 501 h->progressive = get_bits1(&s->gb); |
502 if(h->progressive) | 502 h->pic_structure = 1; |
503 h->pic_structure = 1; | 503 if(!h->progressive) |
504 else if(!(h->pic_structure = get_bits1(&s->gb) && (h->stc == PIC_PB_START_CODE)) ) | 504 h->pic_structure = get_bits1(&s->gb); |
505 if(!h->pic_structure && h->stc == PIC_PB_START_CODE) | |
505 skip_bits1(&s->gb); //advanced_pred_mode_disable | 506 skip_bits1(&s->gb); //advanced_pred_mode_disable |
506 skip_bits1(&s->gb); //top_field_first | 507 skip_bits1(&s->gb); //top_field_first |
507 skip_bits1(&s->gb); //repeat_first_field | 508 skip_bits1(&s->gb); //repeat_first_field |
508 h->qp_fixed = get_bits1(&s->gb); | 509 h->qp_fixed = get_bits1(&s->gb); |
509 h->qp = get_bits(&s->gb,6); | 510 h->qp = get_bits(&s->gb,6); |