Commit 1c0a593a authored by Michael Niedermayer's avatar Michael Niedermayer

get_vlc2()

Originally committed as revision 1084 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 055317a7
...@@ -831,9 +831,8 @@ static int mjpeg_decode_sof0(MJpegDecodeContext *s) ...@@ -831,9 +831,8 @@ static int mjpeg_decode_sof0(MJpegDecodeContext *s)
static inline int mjpeg_decode_dc(MJpegDecodeContext *s, int dc_index) static inline int mjpeg_decode_dc(MJpegDecodeContext *s, int dc_index)
{ {
int code, diff; int code, diff;
#if 0 #if 1
code = get_vlc2(&s->gb, s->vlc[0][dc_index].table, code = get_vlc2(&s->gb, s->vlcs[0][dc_index].table, 9, 2);
s->vlc[0][dc_index].bits, 1);
#else #else
code = get_vlc(&s->gb, &s->vlcs[0][dc_index]); code = get_vlc(&s->gb, &s->vlcs[0][dc_index]);
#endif #endif
...@@ -876,9 +875,8 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block, ...@@ -876,9 +875,8 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block,
ac_vlc = &s->vlcs[1][ac_index]; ac_vlc = &s->vlcs[1][ac_index];
i = 1; i = 1;
for(;;) { for(;;) {
#if 0 #if 1
code = get_vlc2(&s->gb, s->vlcs[1][ac_index].table, code = get_vlc2(&s->gb, s->vlcs[1][ac_index].table, 9, 2);
s->vlcs[1][ac_index].bits, 2);
#else #else
code = get_vlc(&s->gb, ac_vlc); code = get_vlc(&s->gb, ac_vlc);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment