You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Little helper macro to make the use of INIT_VLC_USE_NEW_STATIC easier.
Originally committed as revision 13562 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -805,6 +805,15 @@ int init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,
|
|||||||
#define INIT_VLC_USE_NEW_STATIC 4
|
#define INIT_VLC_USE_NEW_STATIC 4
|
||||||
void free_vlc(VLC *vlc);
|
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
|
* if the vlc code is invalid and max_depth=1 than no bits will be removed
|
||||||
|
Reference in New Issue
Block a user