changeset 10991:cf7a9b5c4064 libavcodec

1 cpu cycle faster suffix_length calculation.
author michael
date Sun, 24 Jan 2010 18:05:02 +0000
parents a6908ae0e0b5
children 9aae10c862f7
files h264_cavlc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264_cavlc.c	Sun Jan 24 17:27:00 2010 +0000
+++ b/h264_cavlc.c	Sun Jan 24 18:05:02 2010 +0000
@@ -408,7 +408,7 @@
 
     if(trailing_ones<total_coeff) {
         int mask, prefix;
-        int suffix_length = total_coeff > 10 && trailing_ones < 3;
+        int suffix_length = total_coeff > 10 & trailing_ones < 3;
         int bitsi= show_bits(gb, LEVEL_TAB_BITS);
         int level_code= cavlc_level_tab[suffix_length][bitsi][0];