comparison h264_cabac.c @ 11208:2e77618615eb libavcodec

get rid of an if() 1 cpu cycle faster.
author michael
date Fri, 19 Feb 2010 03:10:26 +0000
parents 22ca00416118
children bf3436efe037
comparison
equal deleted inserted replaced
11207:22ca00416118 11208:2e77618615eb
935 av_log(h->s.avctx, AV_LOG_ERROR, "overflow in decode_cabac_mb_mvd\n"); 935 av_log(h->s.avctx, AV_LOG_ERROR, "overflow in decode_cabac_mb_mvd\n");
936 return INT_MIN; 936 return INT_MIN;
937 } 937 }
938 } 938 }
939 while( k-- ) { 939 while( k-- ) {
940 if( get_cabac_bypass( &h->cabac ) ) 940 mvd += get_cabac_bypass( &h->cabac )<<k;
941 mvd += 1 << k;
942 } 941 }
943 } 942 }
944 return get_cabac_bypass_sign( &h->cabac, -mvd ); 943 return get_cabac_bypass_sign( &h->cabac, -mvd );
945 } 944 }
946 945