Commit 37659fb7 authored by michael's avatar michael

Little helper macro to make the use of INIT_VLC_USE_NEW_STATIC easier.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13562 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 63b45f10
......@@ -805,6 +805,15 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
#define INIT_VLC_USE_NEW_STATIC 4
void free_vlc(VLC *vlc);
#define INIT_VLC_STATIC(vlc, bits, a,b,c,d,e,f,g, static_size)\
{\
static VLC_TYPE table[static_size][2];\
(vlc)->table= table;\
(vlc)->table_allocated= static_size;\
init_vlc(vlc, bits, a,b,c,d,e,f,g, INIT_VLC_USE_NEW_STATIC);\
}
/**
*
* if the vlc code is invalid and max_depth=1 than no bits will be removed
......
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