Browse Source

h264: correct implicit_weight for field-interlaced pictures.

tags/n0.9
Ronald S. Bultje 14 years ago
parent
commit
4418aa9cb3
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavcodec/h264.c

+ 5
- 1
libavcodec/h264.c View File

@@ -2158,7 +2158,11 @@ static void implicit_weight_table(H264Context *h, int field){
}

if(field < 0){
cur_poc = s->current_picture_ptr->poc;
if (s->picture_structure == PICT_FRAME) {
cur_poc = s->current_picture_ptr->poc;
} else {
cur_poc = s->current_picture_ptr->field_poc[s->picture_structure - 1];
}
if( h->ref_count[0] == 1 && h->ref_count[1] == 1 && !FRAME_MBAFF
&& h->ref_list[0][0].poc + h->ref_list[1][0].poc == 2*cur_poc){
h->use_weight= 0;


Loading…
Cancel
Save