[SCM] libav/experimental: slightly faster decode_cabac_mb_mvd()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:52:25 UTC 2013


The following commit has been merged in the experimental branch:
commit f624f029f0f39b26e64eb26316966c18ef7a6074
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Oct 19 14:54:34 2006 +0000

    slightly faster decode_cabac_mb_mvd()
    
    Originally committed as revision 6735 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 12019ad..f19edd9 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -6003,8 +6003,7 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
                 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 ) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list