Commit 09d9fbe3 authored by banan's avatar banan

get_vlc -> get_vlc2 transition and get_vlc() removed from bitstream.h


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4829 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent db3acabd
...@@ -790,20 +790,6 @@ void free_vlc(VLC *vlc); ...@@ -790,20 +790,6 @@ void free_vlc(VLC *vlc);
SKIP_BITS(name, gb, n)\ SKIP_BITS(name, gb, n)\
} }
// deprecated, dont use get_vlc for new code, use get_vlc2 instead or use GET_VLC directly
static inline int get_vlc(GetBitContext *s, VLC *vlc)
{
int code;
VLC_TYPE (*table)[2]= vlc->table;
OPEN_READER(re, s)
UPDATE_CACHE(re, s)
GET_VLC(code, re, s, table, vlc->bits, 3)
CLOSE_READER(re, s)
return code;
}
/** /**
* parses a vlc code, faster then get_vlc() * parses a vlc code, faster then get_vlc()
......
...@@ -5278,13 +5278,13 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s, GetBitContext *gb ...@@ -5278,13 +5278,13 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s, GetBitContext *gb
int length; int length;
int x=0, y=0; int x=0, y=0;
length= get_vlc(gb, &sprite_trajectory); length= get_vlc2(gb, sprite_trajectory.table, SPRITE_TRAJ_VLC_BITS, 3);
if(length){ if(length){
x= get_xbits(gb, length); x= get_xbits(gb, length);
} }
if(!(s->divx_version==500 && s->divx_build==413)) skip_bits1(gb); /* marker bit */ if(!(s->divx_version==500 && s->divx_build==413)) skip_bits1(gb); /* marker bit */
length= get_vlc(gb, &sprite_trajectory); length= get_vlc2(gb, sprite_trajectory.table, SPRITE_TRAJ_VLC_BITS, 3);
if(length){ if(length){
y=get_xbits(gb, length); y=get_xbits(gb, length);
} }
......
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