# HG changeset patch # User michael # Date 1229962813 0 # Node ID adab508880c6b16205c7a40e7d6ad8a5d62292bd # Parent 1e19ee0298a92f0ad4f9ba2eeb752a35abd81291 Negate 2 more variables, 1 cpu cycle faster on pentium dual. diff -r 1e19ee0298a9 -r adab508880c6 h264.c --- a/h264.c Mon Dec 22 16:14:06 2008 +0000 +++ b/h264.c Mon Dec 22 16:20:13 2008 +0000 @@ -5298,15 +5298,15 @@ if(FRAME_MBAFF){ const int pair_xy = s->mb_x + (s->mb_y & ~1)*s->mb_stride; const int top_pair_xy = pair_xy - s->mb_stride; - const int top_mb_frame_flag = !IS_INTERLACED(s->current_picture.mb_type[top_pair_xy]); - const int left_mb_frame_flag = !IS_INTERLACED(s->current_picture.mb_type[pair_xy-1]); - const int curr_mb_frame_flag = !MB_FIELD; + const int top_mb_field_flag = IS_INTERLACED(s->current_picture.mb_type[top_pair_xy]); + const int left_mb_field_flag = IS_INTERLACED(s->current_picture.mb_type[pair_xy-1]); + const int curr_mb_field_flag = MB_FIELD; const int bottom = (s->mb_y & 1); - if (!curr_mb_frame_flag && (bottom || !top_mb_frame_flag)){ + if (curr_mb_field_flag && (bottom || top_mb_field_flag)){ h->top_mb_xy -= s->mb_stride; } - if (left_mb_frame_flag != curr_mb_frame_flag) { + if (!left_mb_field_flag == curr_mb_field_flag) { h->left_mb_xy[0] = pair_xy - 1; } } else if (FIELD_PICTURE) {