# HG changeset patch # User michael # Date 1222041096 0 # Node ID a7d78c0657f18fa97975ce48e20c20ed9b73c56c # Parent 37f62a3dc64558503d262b39e2b6b9da062a5a21 indent diff -r 37f62a3dc645 -r a7d78c0657f1 h264.c --- a/h264.c Sun Sep 21 23:49:53 2008 +0000 +++ b/h264.c Sun Sep 21 23:51:36 2008 +0000 @@ -988,11 +988,11 @@ if(IS_INTERLACED(h->ref_list[1][0].mb_type[mb_xy])){ // AFL/AFR/FR/FL -> AFL/FL if(!IS_INTERLACED(*mb_type)){ // AFR/FR -> AFL/FL - int cur_poc = s->current_picture_ptr->poc; - int *col_poc = h->ref_list[1]->field_poc; - int col_parity = FFABS(col_poc[0] - cur_poc) >= FFABS(col_poc[1] - cur_poc); - mb_xy= s->mb_x + ((s->mb_y&~1) + col_parity)*s->mb_stride; - b8_stride = 0; + int cur_poc = s->current_picture_ptr->poc; + int *col_poc = h->ref_list[1]->field_poc; + int col_parity = FFABS(col_poc[0] - cur_poc) >= FFABS(col_poc[1] - cur_poc); + mb_xy= s->mb_x + ((s->mb_y&~1) + col_parity)*s->mb_stride; + b8_stride = 0; }else if(!(s->picture_structure & h->ref_list[1][0].reference)){// FL -> FL & differ parity int fieldoff= 2*(h->ref_list[1][0].reference)-3; mb_xy += s->mb_stride*fieldoff;