# HG changeset patch # User michael # Date 1212177968 0 # Node ID 5096176df88ce294035aa70c3ca48400f13e3245 # Parent 966b86c01adecf67db365edba03b886ee9687088 Remove constant argument. diff -r 966b86c01ade -r 5096176df88c mpeg12.c --- a/mpeg12.c Fri May 30 20:02:59 2008 +0000 +++ b/mpeg12.c Fri May 30 20:06:08 2008 +0000 @@ -80,18 +80,15 @@ uint8_t ff_mpeg12_static_rl_table_store[2][2][2*MAX_RUN + MAX_LEVEL + 3]; -static void init_2d_vlc_rl(RLTable *rl, int use_static) +static void init_2d_vlc_rl(RLTable *rl) { int i; init_vlc(&rl->vlc, TEX_VLC_BITS, rl->n + 2, &rl->table_vlc[0][1], 4, 2, - &rl->table_vlc[0][0], 4, 2, use_static); + &rl->table_vlc[0][0], 4, 2, 1); - if(use_static) rl->rl_vlc[0]= av_mallocz_static(rl->vlc.table_size*sizeof(RL_VLC_ELEM)); - else - rl->rl_vlc[0]= av_malloc(rl->vlc.table_size*sizeof(RL_VLC_ELEM)); for(i=0; ivlc.table_size; i++){ int code= rl->vlc.table[i][0]; @@ -181,8 +178,8 @@ init_rl(&ff_rl_mpeg1, ff_mpeg12_static_rl_table_store[0]); init_rl(&ff_rl_mpeg2, ff_mpeg12_static_rl_table_store[1]); - init_2d_vlc_rl(&ff_rl_mpeg1, 1); - init_2d_vlc_rl(&ff_rl_mpeg2, 1); + init_2d_vlc_rl(&ff_rl_mpeg1); + init_2d_vlc_rl(&ff_rl_mpeg2); } }