diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-12-22 16:20:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-12-22 16:20:13 +0000 |
commit | 1952ac3713834e0e14f5700157c635acdb4da6f9 (patch) | |
tree | 1f10fbafa043e78302a321531449adda900a1fa2 /libavcodec/h264.c | |
parent | 03a035e059f441e9142c7a79f5ac208c1eb676c5 (diff) | |
download | ffmpeg-1952ac3713834e0e14f5700157c635acdb4da6f9.tar.gz |
Negate 2 more variables, 1 cpu cycle faster on pentium dual.
Originally committed as revision 16276 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 40433ecb38..90e4190eda 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -5298,15 +5298,15 @@ static inline void compute_mb_neighbors(H264Context *h) 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) { |