on2avc: limit number of bits to 30 in get_egolomb