[FFmpeg-cvslog] r11602 - trunk/libavcodec/cabac.c

diego subversion
Wed Jan 23 11:23:24 CET 2008


Author: diego
Date: Wed Jan 23 11:23:24 2008
New Revision: 11602

Log:
Fix test program compilation: Add missing #include and update the call
of ff_init_cabac_states() to account for API changes.


Modified:
   trunk/libavcodec/cabac.c

Modified: trunk/libavcodec/cabac.c
==============================================================================
--- trunk/libavcodec/cabac.c	(original)
+++ trunk/libavcodec/cabac.c	Wed Jan 23 11:23:24 2008
@@ -183,6 +183,7 @@ void ff_init_cabac_states(CABACContext *
 #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;




More information about the ffmpeg-cvslog mailing list