Revision 946c1130

View differences:

libavcodec/bitstream.h
790 790
    SKIP_BITS(name, gb, n)\
791 791
}
792 792

  
793
// deprecated, dont use get_vlc for new code, use get_vlc2 instead or use GET_VLC directly
794
static inline int get_vlc(GetBitContext *s, VLC *vlc)
795
{
796
    int code;
797
    VLC_TYPE (*table)[2]= vlc->table;
798

  
799
    OPEN_READER(re, s)
800
    UPDATE_CACHE(re, s)
801

  
802
    GET_VLC(code, re, s, table, vlc->bits, 3)
803

  
804
    CLOSE_READER(re, s)
805
    return code;
806
}
807 793

  
808 794
/**
809 795
 * parses a vlc code, faster then get_vlc()
libavcodec/h263.c
5278 5278
        int length;
5279 5279
        int x=0, y=0;
5280 5280

  
5281
        length= get_vlc(gb, &sprite_trajectory);
5281
        length= get_vlc2(gb, sprite_trajectory.table, SPRITE_TRAJ_VLC_BITS, 3);
5282 5282
        if(length){
5283 5283
            x= get_xbits(gb, length);
5284 5284
        }
5285 5285
        if(!(s->divx_version==500 && s->divx_build==413)) skip_bits1(gb); /* marker bit */
5286 5286

  
5287
        length= get_vlc(gb, &sprite_trajectory);
5287
        length= get_vlc2(gb, sprite_trajectory.table, SPRITE_TRAJ_VLC_BITS, 3);
5288 5288
        if(length){
5289 5289
            y=get_xbits(gb, length);
5290 5290
        }

Also available in: Unified diff