Mercurial > libavcodec.hg
diff h261.c @ 4668:1f1a0e67b961 libavcodec
kill av_mallocz_static() calls in init_rl()
author | michael |
---|---|
date | Wed, 14 Mar 2007 13:19:19 +0000 |
parents | be94e97ecb6e |
children | 4578b68578bb |
line wrap: on
line diff
--- a/h261.c Wed Mar 14 12:29:32 2007 +0000 +++ b/h261.c Wed Mar 14 13:19:19 2007 +0000 @@ -58,6 +58,8 @@ int gob_start_code_skipped; // 1 if gob start code is already read before gob header is read }H261Context; +static uint8_t static_rl_table_store[2][2*MAX_RUN + MAX_LEVEL + 3]; + void ff_h261_loop_filter(MpegEncContext *s){ H261Context * h= (H261Context*)s; const int linesize = s->linesize; @@ -285,7 +287,7 @@ if (!done) { done = 1; - init_rl(&h261_rl_tcoeff, 1); + init_rl(&h261_rl_tcoeff, static_rl_table_store); } s->min_qcoeff= -127; @@ -392,7 +394,7 @@ init_vlc(&h261_cbp_vlc, H261_CBP_VLC_BITS, 63, &h261_cbp_tab[0][1], 2, 1, &h261_cbp_tab[0][0], 2, 1, 1); - init_rl(&h261_rl_tcoeff, 1); + init_rl(&h261_rl_tcoeff, static_rl_table_store); init_vlc_rl(&h261_rl_tcoeff, 1); } }