changeset 4685:2c8f88e7397a libavcodec

fix init_vlc() with nonzero flags
author mru
date Sun, 18 Mar 2007 22:32:39 +0000
parents 6ec0afffc572
children 3a891d2379ce
files bitstream.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bitstream.c	Sun Mar 18 21:43:20 2007 +0000
+++ b/bitstream.c	Sun Mar 18 22:32:39 2007 +0000
@@ -227,10 +227,10 @@
 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 @@
     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;
     }