changeset 780:a48bb8bc63dd libavcodec

get_vlc2()
author michaelni
date Sun, 27 Oct 2002 21:02:47 +0000
parents 915524c08334
children 6f5e87957bcb
files mjpeg.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mjpeg.c	Sun Oct 27 19:20:02 2002 +0000
+++ b/mjpeg.c	Sun Oct 27 21:02:47 2002 +0000
@@ -831,9 +831,8 @@
 static inline int mjpeg_decode_dc(MJpegDecodeContext *s, int dc_index)
 {
     int code, diff;
-#if 0
-    code = get_vlc2(&s->gb, s->vlc[0][dc_index].table,
-	s->vlc[0][dc_index].bits, 1);
+#if 1
+    code = get_vlc2(&s->gb, s->vlcs[0][dc_index].table, 9, 2);
 #else
     code = get_vlc(&s->gb, &s->vlcs[0][dc_index]);
 #endif
@@ -876,9 +875,8 @@
     ac_vlc = &s->vlcs[1][ac_index];
     i = 1;
     for(;;) {
-#if 0
-	code = get_vlc2(&s->gb, s->vlcs[1][ac_index].table,
-	    s->vlcs[1][ac_index].bits, 2);
+#if 1
+	code = get_vlc2(&s->gb, s->vlcs[1][ac_index].table, 9, 2);
 #else
         code = get_vlc(&s->gb, ac_vlc);
 #endif