Mercurial > libavcodec.hg
diff h264.c @ 3993:8b7c59b7af01 libavcodec
make state transition tables global as they are constant and the code is slightly faster that way
author | michael |
---|---|
date | Wed, 11 Oct 2006 14:44:17 +0000 |
parents | 72bae00a317f |
children | eeab02251056 |
line wrap: on
line diff
--- a/h264.c Wed Oct 11 13:25:29 2006 +0000 +++ b/h264.c Wed Oct 11 14:44:17 2006 +0000 @@ -7388,7 +7388,7 @@ align_get_bits( &s->gb ); /* init cabac */ - ff_init_cabac_states( &h->cabac, ff_h264_mps_state, ff_h264_lps_state, 64 ); + ff_init_cabac_states( &h->cabac); ff_init_cabac_decoder( &h->cabac, s->gb.buffer + get_bits_count(&s->gb)/8, ( s->gb.size_in_bits - get_bits_count(&s->gb) + 7)/8);