[Ffmpeg-cvslog] r8443 - trunk/libavcodec/bitstream.c

mru subversion
Sun Mar 18 23:32:39 CET 2007


Author: mru
Date: Sun Mar 18 23:32:39 2007
New Revision: 8443

Modified:
   trunk/libavcodec/bitstream.c

Log:
fix init_vlc() with nonzero flags


Modified: trunk/libavcodec/bitstream.c
==============================================================================
--- trunk/libavcodec/bitstream.c	(original)
+++ trunk/libavcodec/bitstream.c	Sun Mar 18 23:32:39 2007
@@ -227,10 +227,10 @@ static int build_table(VLC *vlc, int tab
 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 
     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;
     }




More information about the ffmpeg-cvslog mailing list