changeset 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 8173c059f769
files h264_cabac.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h264_cabac.c	Fri Feb 19 02:37:11 2010 +0000
+++ b/h264_cabac.c	Fri Feb 19 03:10:26 2010 +0000
@@ -937,8 +937,7 @@
             }
         }
         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 );