#include <string.h>
-#include "common.h"
+#include "libavutil/common.h"
#include "bitstream.h"
#include "cabac.h"
}
}
-#if 0 //selftest
+#ifdef TEST
#undef random
#define SIZE 10240
#include "avcodec.h"
+#include "cabac.h"
int main(void){
CABACContext c;
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;
return 0;
}
-#endif
+#endif /* TEST */