diff options
author | Måns Rullgård <mans@mansr.com> | 2007-03-18 22:32:39 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2007-03-18 22:32:39 +0000 |
commit | d7645fb9dbf79f47faaa42a228482a2ba01e8b73 (patch) | |
tree | c05ea6ec1cc0bbb020e9a2f9d548c18b3c2191bb /libavcodec/bitstream.c | |
parent | 575bf46f164092ca04565fa05637ec62b022cfdb (diff) | |
download | ffmpeg-d7645fb9dbf79f47faaa42a228482a2ba01e8b73.tar.gz |
fix init_vlc() with nonzero flags
Originally committed as revision 8443 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r-- | libavcodec/bitstream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index f571ae6002..a0c2397980 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -227,10 +227,10 @@ static int build_table(VLC *vlc, int table_nb_bits, int init_vlc(VLC *vlc, int nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, - int use_static) + int flags) { vlc->bits = nb_bits; - if(!use_static) { + if(!(flags & INIT_VLC_USE_STATIC)) { vlc->table = NULL; vlc->table_allocated = 0; vlc->table_size = 0; @@ -248,7 +248,7 @@ int init_vlc(VLC *vlc, int nb_bits, int nb_codes, if (build_table(vlc, nb_bits, nb_codes, bits, bits_wrap, bits_size, codes, codes_wrap, codes_size, - 0, 0, use_static) < 0) { + 0, 0, flags) < 0) { av_free(vlc->table); return -1; } |