aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-10-27 21:02:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-10-27 21:02:47 +0000
commit1c0a593ac871784baea4b6de368db6d5d86ba8b9 (patch)
treef968bf04de4d090a28781971e6c096433725d3d8
parent055317a74c179d5e849d9723eb08b0c005e0c0cc (diff)
downloadffmpeg-1c0a593ac871784baea4b6de368db6d5d86ba8b9.tar.gz
get_vlc2()
Originally committed as revision 1084 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mjpeg.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index 2360d7ff80..10402c3f80 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -831,9 +831,8 @@ static int mjpeg_decode_sof0(MJpegDecodeContext *s)
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 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block,
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