Browse Source

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

Originally committed as revision 4829 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Benjamin Larsson 20 years ago
parent
commit
946c113046
2 changed files with 2 additions and 16 deletions
  1. +0
    -14
      libavcodec/bitstream.h
  2. +2
    -2
      libavcodec/h263.c

+ 0
- 14
libavcodec/bitstream.h View File

@@ -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()


+ 2
- 2
libavcodec/h263.c View File

@@ -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);
} }


Loading…
Cancel
Save