# HG changeset patch # User gpoirier # Date 1161164245 0 # Node ID 866a83726985907f365c7191e6d2a816ef53f2df # Parent 16697bdf4ac23330c4f09b84309e2a917eba6bc8 Kill a warning with MSVC Patch by Jindrich Makovicka makovick A gmail P com Original thread: Date: 08:21 AM Subject Re: [Ffmpeg-devel] Weird line in cabac.h diff -r 16697bdf4ac2 -r 866a83726985 cabac.c --- a/cabac.c Tue Oct 17 23:59:21 2006 +0000 +++ b/cabac.c Wed Oct 18 09:37:25 2006 +0000 @@ -51,7 +51,7 @@ }; uint8_t ff_h264_mlps_state[4*64]; -uint8_t ff_h264_lps_range[4][2*64]; +uint8_t ff_h264_lps_range[4*2*64]; uint8_t ff_h264_lps_state[2*64]; uint8_t ff_h264_mps_state[2*64]; @@ -152,8 +152,8 @@ for(i=0; i<64; i++){ for(j=0; j<4; j++){ //FIXME check if this is worth the 1 shift we save - ff_h264_lps_range[j][2*i+0]= - ff_h264_lps_range[j][2*i+1]= lps_range[i][j]; + ff_h264_lps_range[j*2*64+2*i+0]= + ff_h264_lps_range[j*2*64+2*i+1]= lps_range[i][j]; } ff_h264_mlps_state[128+2*i+0]= diff -r 16697bdf4ac2 -r 866a83726985 cabac.h --- a/cabac.h Tue Oct 17 23:59:21 2006 +0000 +++ b/cabac.h Wed Oct 18 09:37:25 2006 +0000 @@ -33,6 +33,7 @@ #define CABAC_MASK ((1<range&0xC0) + s]; + int RangeLPS= ff_h264_lps_range[2*(c->range&0xC0) + s]; int bit, lps_mask attribute_unused; c->range -= RangeLPS;