Browse Source

get rid of an if() 1 cpu cycle faster.

Originally committed as revision 21889 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
f4ce853125
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/h264_cabac.c

+ 1
- 2
libavcodec/h264_cabac.c View File

@@ -937,8 +937,7 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
}
}
while( k-- ) {
if( get_cabac_bypass( &h->cabac ) )
mvd += 1 << k;
mvd += get_cabac_bypass( &h->cabac )<<k;
}
}
return get_cabac_bypass_sign( &h->cabac, -mvd );


Loading…
Cancel
Save