changeset 3023:80fc42ba85b7 libavcodec

get_vlc -> get_vlc2 transition.
author banan
date Sun, 08 Jan 2006 19:31:21 +0000
parents d4080a510724
children 67d3bb5a4ce1
files mpegaudiodec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Sun Jan 08 17:09:05 2006 +0000
+++ b/mpegaudiodec.c	Sun Jan 08 19:31:21 2006 +0000
@@ -1650,7 +1650,7 @@
             if (get_bits_count(&s->gb) >= end_pos)
                 break;
             if (code_table) {
-                code = get_vlc(&s->gb, vlc);
+                code = get_vlc2(&s->gb, vlc->table, 8, 2);
                 if (code < 0)
                     return -1;
                 y = code_table[code];
@@ -1701,7 +1701,7 @@
         }
         last_gb= s->gb;
 
-        code = get_vlc(&s->gb, vlc);
+        code = get_vlc2(&s->gb, vlc->table, vlc->bits, 2);
         dprintf("t=%d code=%d\n", g->count1table_select, code);
         if (code < 0)
             return -1;