Fix test program compilation: Add missing #include and update the call
authorDiego Biurrun <diego@biurrun.de>
Wed, 23 Jan 2008 10:23:24 +0000 (10:23 +0000)
committerDiego Biurrun <diego@biurrun.de>
Wed, 23 Jan 2008 10:23:24 +0000 (10:23 +0000)
of ff_init_cabac_states() to account for API changes.

Originally committed as revision 11602 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/cabac.c

index e125338..fc17bb6 100644 (file)
@@ -183,6 +183,7 @@ void ff_init_cabac_states(CABACContext *c){
 #define SIZE 10240
 
 #include "avcodec.h"
+#include "cabac.h"
 
 int main(void){
     CABACContext c;
@@ -192,7 +193,7 @@ int main(void){
     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<SIZE; i++){
         r[i]= random()%7;