Revision 946c1130 libavcodec/bitstream.h

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

Also available in: Unified diff