diff h264.c @ 4042:643cdc58bd69 libavcodec

slightly faster decode_cabac_mb_mvd()
author michael
date Thu, 19 Oct 2006 14:54:34 +0000
parents 0113ceb0f953
children 19f07b651d79
line wrap: on
line diff
--- a/h264.c	Thu Oct 19 10:33:56 2006 +0000
+++ b/h264.c	Thu Oct 19 14:54:34 2006 +0000
@@ -6003,8 +6003,7 @@
                 mvd += 1 << k;
         }
     }
-    if( get_cabac_bypass( &h->cabac ) )  return -mvd;
-    else                                 return  mvd;
+    return get_cabac_bypass_sign( &h->cabac, -mvd );
 }
 
 static int inline get_cabac_cbf_ctx( H264Context *h, int cat, int idx ) {