Commit 2c4c8bfa authored by stefang's avatar stefang

fix parsing of pic_structure


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17136 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e9526a3f
...@@ -499,9 +499,10 @@ static int decode_pic(AVSContext *h) { ...@@ -499,9 +499,10 @@ static int decode_pic(AVSContext *h) {
if(s->low_delay) if(s->low_delay)
get_ue_golomb(&s->gb); //bbv_check_times get_ue_golomb(&s->gb); //bbv_check_times
h->progressive = get_bits1(&s->gb); h->progressive = get_bits1(&s->gb);
if(h->progressive) h->pic_structure = 1;
h->pic_structure = 1; if(!h->progressive)
else if(!(h->pic_structure = get_bits1(&s->gb) && (h->stc == PIC_PB_START_CODE)) ) h->pic_structure = get_bits1(&s->gb);
if(!h->pic_structure && h->stc == PIC_PB_START_CODE)
skip_bits1(&s->gb); //advanced_pred_mode_disable skip_bits1(&s->gb); //advanced_pred_mode_disable
skip_bits1(&s->gb); //top_field_first skip_bits1(&s->gb); //top_field_first
skip_bits1(&s->gb); //repeat_first_field skip_bits1(&s->gb); //repeat_first_field
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment