Commit 07ad12ec authored by Diego Biurrun's avatar Diego Biurrun

Fix test program compilation: Add missing #include and update the call

of ff_init_cabac_states() to account for API changes.

Originally committed as revision 11602 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c46e2874
...@@ -183,6 +183,7 @@ void ff_init_cabac_states(CABACContext *c){ ...@@ -183,6 +183,7 @@ void ff_init_cabac_states(CABACContext *c){
#define SIZE 10240 #define SIZE 10240
#include "avcodec.h" #include "avcodec.h"
#include "cabac.h"
int main(void){ int main(void){
CABACContext c; CABACContext c;
...@@ -192,7 +193,7 @@ int main(void){ ...@@ -192,7 +193,7 @@ int main(void){
uint8_t state[10]= {0}; uint8_t state[10]= {0};
ff_init_cabac_encoder(&c, b, SIZE); 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++){ for(i=0; i<SIZE; i++){
r[i]= random()%7; r[i]= random()%7;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment