X-Git-Url: https://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Fcabac.c;h=c4bd2740cb154690e7c1729c47bcca2cb6546d15;hp=4d018823f23512693851e5cbdb7a7b0b7e52a1fa;hb=61ccfcc00950ae53725abc50435b2cce72ec8deb;hpb=cf713bb8624d3e56e5077d51283f4e1ae02a5910 diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 4d018823f2..c4bd2740cb 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -127,49 +127,75 @@ void ff_init_cabac_states(CABACContext *c, uint8_t const (*lps_range)[4], int main(){ CABACContext c; uint8_t b[9*SIZE]; - uint8_t bit[9*SIZE]; + uint8_t r[9*SIZE]; int i; - uint8_t state= 0; + 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); for(i=0; i