changeset 2928:16d67170715c libavcodec

tidier cabac_intra4x4_pred_mode
author lorenm
date Thu, 03 Nov 2005 23:26:51 +0000
parents d268a7c6c91d
children a97159871cdb
files h264.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Nov 02 09:18:32 2005 +0000
+++ b/h264.c	Thu Nov 03 23:26:51 2005 +0000
@@ -5291,12 +5291,10 @@
     if( get_cabac( &h->cabac, &h->cabac_state[68] ) )
         return pred_mode;
 
-    if( get_cabac( &h->cabac, &h->cabac_state[69] ) )
-        mode += 1;
-    if( get_cabac( &h->cabac, &h->cabac_state[69] ) )
-        mode += 2;
-    if( get_cabac( &h->cabac, &h->cabac_state[69] ) )
-        mode += 4;
+    mode += 1 * get_cabac( &h->cabac, &h->cabac_state[69] );
+    mode += 2 * get_cabac( &h->cabac, &h->cabac_state[69] );
+    mode += 4 * get_cabac( &h->cabac, &h->cabac_state[69] );
+
     if( mode >= pred_mode )
         return mode + 1;
     else