# HG changeset patch # User diego # Date 1201083804 0 # Node ID 1c0477262c7278cec39374d6eefed163e3086747 # Parent 8cbfc9d758333e63fce066a15cb541272f8e0763 Fix test program compilation: Add missing #include and update the call of ff_init_cabac_states() to account for API changes. diff -r 8cbfc9d75833 -r 1c0477262c72 cabac.c --- a/cabac.c Wed Jan 23 10:19:39 2008 +0000 +++ b/cabac.c Wed Jan 23 10:23:24 2008 +0000 @@ -183,6 +183,7 @@ #define SIZE 10240 #include "avcodec.h" +#include "cabac.h" int main(void){ CABACContext c; @@ -192,7 +193,7 @@ uint8_t state[10]= {0}; ff_init_cabac_encoder(&c, b, SIZE); - ff_init_cabac_states(&c, ff_h264_lps_range, ff_h264_mps_state, ff_h264_lps_state, 64); + ff_init_cabac_states(&c); for(i=0; i