changeset 6171:1c0477262c72 libavcodec

Fix test program compilation: Add missing #include and update the call of ff_init_cabac_states() to account for API changes.
author diego
date Wed, 23 Jan 2008 10:23:24 +0000
parents 8cbfc9d75833
children 13aa4cac4dde
files cabac.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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<SIZE; i++){
         r[i]= random()%7;