From 0bc2e7f08108c558a937c6b86c39d37b57707370 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 10 Oct 2006 08:16:41 +0000 Subject: [PATCH] BRANCHLESS_CABAD --> BRANCHLESS_CABAC_DECODER Originally committed as revision 6623 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/cabac.c | 2 +- libavcodec/cabac.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 01efcdb65c..f2744a39bb 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -133,7 +133,7 @@ void ff_init_cabac_states(CABACContext *c, uint8_t const (*lps_range)[4], c->mps_state[2*i+1]= 2*mps_state[i]+1; if( i ){ -#ifdef BRANCHLESS_CABAD +#ifdef BRANCHLESS_CABAC_DECODER c->mps_state[-2*i-1]= 2*lps_state[i]+0; //FIXME yes this is not valid C but iam lazy, cleanup welcome c->mps_state[-2*i-2]= 2*lps_state[i]+1; }else{ diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h index d1022a98f8..a677d0f87e 100644 --- a/libavcodec/cabac.h +++ b/libavcodec/cabac.h @@ -31,7 +31,7 @@ #define CABAC_BITS 16 #define CABAC_MASK ((1<range -= RangeLPS; -#ifndef BRANCHLESS_CABAD +#ifndef BRANCHLESS_CABAC_DECODER if(c->low < c->range){ bit= s&1; *state= c->mps_state[s];